Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PHPStan incorrectly reports ReflectionParameter::allowsNull() as deprecated #14559

@bitwise-operators

Description

@bitwise-operators

Bug report

A change somewhere between 2.1.46 and 2.1.54 has caused phpstan to report the ReflectionParameter::allowsNull() method to be reported as deprecated.

However neither the PHP manual page, nor the deprecations page for 8.5 make any mention of this.

Code snippet that reproduces the problem

https://phpstan.org/r/eb301b20-fc95-4e13-b209-2fbd8bed5dfc

Expected output

Shouldn't report a deprecation

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions