Skip to content

Commit 4234bc1

Browse files
authored
Merge pull request #4853 from wp-cli/4852-php-uname-mode-fallback
Fall back to full string instead of $mode on PHP < 7
2 parents 531ebc3 + a618ff5 commit 4234bc1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎phpcs.xml.dist‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
<exclude name="PHPCompatibility.PHP.DeprecatedIniDirectives.magic_quotes_sybaseDeprecatedRemoved"/>
2828
</rule>
2929
<config name="testVersion" value="5.3-"/>
30+
<!-- Ignore php_uname mode issue, we're conditionally providing a callback -->
31+
<rule ref="PHPCompatibility.PHP.NewFunctionParameters.php_uname_modeFound">
32+
<exclude-pattern>*/php/commands/src/CLI_Command.php</exclude-pattern>
33+
</rule>
3034

3135
<rule ref="WordPress-Core">
3236
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found" />

0 commit comments

Comments
 (0)