Skip to content

Constant in trait analysis incorrect #11088

@liquid207

Description

@liquid207

Bug report

If a const array defined in trait uses const defined in class that using this trait, PHPStan will output an error (See the link for details)

Code snippet that reproduces the problem

https://phpstan.org/r/bfead168-b26e-4c62-98ee-4eefb8d42f9e

Expected output

No errors

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

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions