Skip to content

Regression about complicated conditions #14178

@ondrejmirtes

Description

@ondrejmirtes

Bug report

Runtime proof the code is okay: https://3v4l.org/HmekC

PHPStan reports false positive.

First bad commit is phpstan/phpstan-src@3daa312

Code snippet that reproduces the problem

https://phpstan.org/r/78cb6d7b-582a-46e0-b893-cd3155d3bc60

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