🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Superglobal manipulation in a function is ignored #12799

Description

@thomascorthals

Bug report

When a superglobal is changed in a function, PHPStan acts as if the function call didn't change it. Seems to be that way since 2.1.9.

Code snippet that reproduces the problem

https://phpstan.org/r/c9aa5ab5-17b1-4b05-b49e-b961751905ee

Expected output

This should report identical.alwaysTrue instead of identical.alwaysFalse.

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