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
Variables in PHP may have a dynamic symbol name, and are called variable variables. For example, the following function prints hello, which is a string stored in the variable $greeting, even though that variable is never explicitly mentioned:
Originally described in #84.
Variables in PHP may have a dynamic symbol name, and are called variable variables. For example, the following function prints
hello
, which is a string stored in the variable$greeting
, even though that variable is never explicitly mentioned:Here's the process I would imagine using to identify such a variable for the purposes of this sniff:
Step 3 is very difficult because it requires executing the PHP code or a deep static analysis. Maybe there's something else we can do, though?
The text was updated successfully, but these errors were encountered: