Skip to content

Invalid assumptions about non-deterministic functions #7529

@Kolyunya

Description

@Kolyunya

Bug report

PHPStan incorrectly assumes that the second call to a non-deterministic function would yield the same result.

Code snippet that reproduces the problem

https://phpstan.org/r/fb5391d6-50fb-4378-9c11-3306b911055f

Expected output

No issues should be reported.

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

PHPStan helps me every single day. Love you guys!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions