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 presence of the \ before the function calls from the global namespace, means that an error of Expected next thing to be an escaping function, ... not "\" appears.
I've not looked into the change needed, but if the sniff could allow an optional \ before those function checks, that would be great :-)
Using fully-qualified function calls is faster. Details and benchmarks are here. This is from an inspection from the PHP Inspections extension for PhpStorm.
The text was updated successfully, but these errors were encountered:
This simple change means that namespace separators will be be ignored completely by the check for output escaping which fixes the immediate issue.
For a more thorough fix, the logic of the function would need to be refactored to take namespaced functions into account as well, but that's for another day.
Related to #764.
This method is in a namespaced class:
The presence of the
\
before the function calls from the global namespace, means that an error ofExpected next thing to be an escaping function, ... not "\"
appears.I've not looked into the change needed, but if the sniff could allow an optional
\
before those function checks, that would be great :-)Using fully-qualified function calls is faster. Details and benchmarks are here. This is from an inspection from the PHP Inspections extension for PhpStorm.
The text was updated successfully, but these errors were encountered: