Skip to content

PHP 8.2: Partially-supported callable are deprecated #10977

@benjifisher

Description

@benjifisher

Feature request

From https://php.watch/versions/8.2/partially-supported-callable-deprecation:

PHP 8.2 deprecates certain patterns of callables that do not work with the $callable() pattern.

For example, https://phpstan.org/r/0abbdab0-be93-4efe-9ddf-413f33731ecf should report the deprecated use of 'self::upper' as a callback.

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

PHPStan helps me every day by catching all sorts of other problems, including PHP and Drupal deprecations. It just missed this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions