Skip to content

FN: use of callable on a property type is not allowed, but PHPStan doesn't report it #4424

@dktapps

Description

@dktapps

Feature request

https://phpstan.org/r/28100a96-b313-4515-805f-d4aefeca1b3f

https://3v4l.org/KK4GH

callable is not allowed as a property typehint (presumably because the callable type is too unreliable, but don't quote me on this).

PHPStan should report this as an error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions