🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

If trait has an abstract function that return a union type, the conditions in this trait are considered to always be true or false #9515

Description

@yankewei

Bug report

If trait has an abstract function that return a union type and the trait used multiple class, the conditions in the trait are considered to always be true or false.

Code snippet that reproduces the problem

https://phpstan.org/r/b81fcf53-a140-4c82-9f31-96853269f91a

Expected output

No error!

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions