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
Might be an issue, might not, but haven't seen any mentioning of it here: I've run the PHPCompatibility Codesniffer and have this found the usage of i.e. $this->doExtraAttributes("h$level", $dummy =& $matches[2]); as Using a call-time pass-by-reference is prohibited since php 5.4 (doing a quick search for $dummy finds all occurences)
If i'm not mistaken the use of $dummy in all those cases is superfluous is it not?
The text was updated successfully, but these errors were encountered:
No issue here. That's not a call-time pass by reference. $dummy =& $matches[2] is a reference assignment of $matches[2] to local variable $dummy, local variable which is then passed as an argument to doExtraAttributes. The reason I'm doing it this way is to avoid the more complicated expression (isset($matches[2]) ? $matches[2] : null).
Might be an issue, might not, but haven't seen any mentioning of it here: I've run the PHPCompatibility Codesniffer and have this found the usage of i.e.
$this->doExtraAttributes("h$level", $dummy =& $matches[2]);
asUsing a call-time pass-by-reference is prohibited since php 5.4
(doing a quick search for $dummy finds all occurences)If i'm not mistaken the use of
$dummy
in all those cases is superfluous is it not?The text was updated successfully, but these errors were encountered: