Skip to content

Commit a638170

Browse files
committed
PHPCS: silence deprecation notice for CS run
For the code in this repo, various rulesets from the WordPressCS project are used. One of those ruleset includes a sniff - `Generic.Functions.CallTimePassByReference` - which is (hard) deprecated since PHPCS 3.13.0 and which is kind of redundant anyhow as: 1. The sniff is looking for a syntax which was removed from PHP in PHP 5.4. 2. The PHPCompatibility standard safeguards against re-introduction of the removed PHP syntax anyhow. This will at some point need addressing in WordPressCS upstream, but for now, we can silence the deprecation notice by excluding the redundant sniff.
1 parent ac9c5fc commit a638170

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.phpcs.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<exclude name="WordPress.NamingConventions.ValidVariableName"/>
2222
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
2323
<exclude name="WordPress.PHP.YodaConditions"/>
24+
<exclude name="Generic.Functions.CallTimePassByReference"/>
2425
</rule>
2526

2627
<rule ref="WordPress-Docs"/>

0 commit comments

Comments
 (0)