You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't make sense in this case anyway, because file_exists() depends on filesystem state (e.g. if the file was deleted, the result might change). Because it depends on state, file_exists() should be considered to have side effects itself.
Bug report
This can be quite tricky. Some functions may have side effects so that remembering return value doesn't make sense if next actions mutates the state
Code snippet that reproduces the problem
https://phpstan.org/r/61c5bd5b-dc64-4562-aa3c-49cf7de51992
Expected output
No error
The text was updated successfully, but these errors were encountered: