Skip to content

Incorrect identical.alwaysFalse on second call to apcu_fetch() #14519

@madmajestro

Description

@madmajestro

Bug report

When calling apcu_* functions like apcu_fetch() with the same parameters more than once, subsequent calls are no longer considered as being able to return false if a false check was made after the first call. This occurs since PHPStan 2.1.45.

Code snippet that reproduces the problem

https://phpstan.org/r/57d5e42e-4810-4589-84a4-554a8ec4da0c

Expected output

No error is expected, as was the case up to PHPStan 2.1.44.

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
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions