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 PHP version PHPCS supports is not relevant to the decision.
Having said that, I don't disagree with deprecating and removing the sniff. The sniff has always been a bit of an odd-one out between the sniffs in this package and I agree that PHPCompatibility would be the better tool to check for deprecated PHP syntax.
As PHP 5.4 was released in 2012, with the last security release in 2015, I can't imagine this sniff is still used much, so I think deprecating the sniff and removing it in 4.0 makes sense.
Action list:
I will add a note to the changelog to soft deprecate in the next patch version.
Activity
jrfnl commentedon Apr 2, 2025
The PHP version PHPCS supports is not relevant to the decision.
Having said that, I don't disagree with deprecating and removing the sniff. The sniff has always been a bit of an odd-one out between the sniffs in this package and I agree that PHPCompatibility would be the better tool to check for deprecated PHP syntax.
As PHP 5.4 was released in 2012, with the last security release in 2015, I can't imagine this sniff is still used much, so I think deprecating the sniff and removing it in 4.0 makes sense.
Action list:
Drop Generic.Functions.CallTimePassByReference
WordPress-Extra: remove `Generic.Functions.CallTimePassByReference` s…
WordPress-Extra: remove the `Generic.Functions.CallTimePassByReferenc…
Disable deprecated Generic.Functions.CallTimePassByReference" sniff