Skip to content

phpstan doesn't take into account that a variable have been changed #11019

@momala454

Description

@momala454

Bug report

I'm doing assert on a variable, changing it, then doing assert again. Phpstan still think that the variable have not changed and that the assert is duplicated

Code snippet that reproduces the problem

https://phpstan.org/r/3a8b69b5-722c-4d13-a8ee-e640d7c59a27

Expected output

No error

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

yes !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions