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
The array in Constants::getPassByReferenceFunctions() includes a number of methods, but no indication that:
These are methods and should only be recognized as the function when called as a method.
What class these methods come from.
This means that, for example, if someone would currently define a global function addTask() which doesn't use pass by reference, the sniff may have a false negative as parameter 3 would not be checked.
The same goes, of course, for userland classes defining a function of the same name as one of these, as well as namespaced functions.
The text was updated successfully, but these errors were encountered:
The array in
Constants::getPassByReferenceFunctions()
includes a number of methods, but no indication that:This means that, for example, if someone would currently define a global function
addTask()
which doesn't use pass by reference, the sniff may have a false negative as parameter 3 would not be checked.The same goes, of course, for userland classes defining a function of the same name as one of these, as well as namespaced functions.
The text was updated successfully, but these errors were encountered: