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
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.alwaysTrueinstead ofidentical.alwaysFalse.Did PHPStan help you today? Did it make you happy in any way?
No response