Skip to content

Commit

Permalink
Ruleset: temporary work-around for upstream bug
Browse files Browse the repository at this point in the history
The new array property `extend`-ing as added in PHPCS 3.4.0 appears to have a bug which doesn't allow it to work with default values of array properties, so until this bug is fixed, the default value of the `TestDoubles` `doubles_path` property also needs to be set in the standard.

For more details, see the upstream bug report:  squizlabs/PHP_CodeSniffer#2228
  • Loading branch information
jrfnl committed Nov 13, 2018
1 parent d284d84 commit bffbf60
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Yoast/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@
</properties>
</rule>

<rule ref="Yoast.Files.TestDoubles">
<properties>
<property name="doubles_path" type="array">
<element value="/tests/doubles"/>
</property>
</properties>
</rule>

<!--
#############################################################################
Expand Down

0 comments on commit bffbf60

Please sign in to comment.