Skip to content

Conditional type in @param - Call to method Xxx::xxx() with true will always evaluate to true. #10337

@mvorisek

Description

@mvorisek

Bug report

Conditional type in @param can have always true condition, but such tautology in it is completely expected and phpstan error must not emit any error for it.

Code snippet that reproduces the problem

https://phpstan.org/r/676a25bf-8118-4353-937f-2660308e8b47

Expected output

no phpstan error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions