Skip to content

PHP8.2 - Interface property annotation not found inside class #8550

@lcharette

Description

@lcharette

Bug report

Similar to #8537, when a property is documented in an interface @property annotation, it's not recognized by classes using this interface. This is not an issue on PHP 8.0 and 8.1.

Code snippet that reproduces the problem

https://phpstan.org/r/75fa6a47-cbc4-4eb3-b5eb-cf4851f6b805

Access to an undefined property SomeInterface::$var.

Expected output

No errors!

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

PHPStan helped me become a better PHP dev :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions