Skip to content

Commit

Permalink
PHPCS: minor ruleset clean up
Browse files Browse the repository at this point in the history
These haven't been necessary since support for PHP < 7.0 was dropped in PR 192.
  • Loading branch information
jrfnl committed Jan 12, 2025
1 parent 59b3f8f commit c1d776b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,6 @@
#############################################################################
-->

<!-- The polyfills for the PHP native exceptions can not have a namespace
and making those the only files with a file comment would create more,
not less inconsistency. -->
<rule ref="Yoast.Commenting.FileComment">
<exclude-pattern>/src/Exceptions/*Error\.php$</exclude-pattern>
</rule>

<!-- For named parameter support, the parameters in the polyfilled assertions *must*
mirror the parameter name as used in PHPUnit itself.
These cannot be changed until PHPUnit itself changes the names. -->
Expand Down Expand Up @@ -139,16 +132,6 @@
<exclude-pattern>/src/TestListeners/TestListenerDefaultImplementationPHPUnitGte7\.php$</exclude-pattern>
</rule>

<!-- The TestListenerDefaultImplementation for PHPUnit 7+ will only ever be loaded on PHP 7.1+. -->
<rule ref="PHPCompatibility.Interfaces.NewInterfaces.throwableFound">
<exclude-pattern>/src/TestListeners/TestListenerDefaultImplementationPHPUnitGte7\.php$</exclude-pattern>
</rule>

<!-- The TestListenerDefaultImplementation for PHPUnit 7+ will only ever be loaded on PHP 7.1+. -->
<rule ref="PHPCompatibility.FunctionDeclarations.NewParamTypeDeclarations.floatFound">
<exclude-pattern>/src/TestListeners/TestListenerDefaultImplementationPHPUnitGte7\.php$</exclude-pattern>
</rule>

<!-- TEST CODE -->

<!-- Final classes is irrelevant for test fixtures. -->
Expand Down

0 comments on commit c1d776b

Please sign in to comment.