Skip to content

FP assuming method purity even after state change in bleeding edge #5501

@dktapps

Description

@dktapps

Bug report

This only happens when bleedingEdge is used.

Code snippet that reproduces the problem

https://phpstan.org/r/7630b305-3559-42e6-b125-a876bcce437e
https://phpstan.org/r/8f63b716-d2b7-4dca-b41f-98659f991e35

Expected output

Both samples should be error-free, because $this->damage is modified directly before the isBroken() call, which may cause a different result to be returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions