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
PHP function get_defined_vars() creates array of all currently visible variables (name => value), including function arguments. PHPStan probably doesn't mark arguments as used after calling get_defined_vars(). Similar function - func_get_args() correctly marks arguments as used.
Bug report
PHP function get_defined_vars() creates array of all currently visible variables (name => value), including function arguments. PHPStan probably doesn't mark arguments as used after calling get_defined_vars(). Similar function - func_get_args() correctly marks arguments as used.
Code snippet that reproduces the problem
https://phpstan.org/r/5a1cab33-f3ff-4b26-ba76-c7bc7feaa235
Expected output
PHPStan reported issue, which is (in my opinion) not an issue.
Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: