diff --git a/WordPress/Tests/WhiteSpace/OperatorSpacingUnitTest.inc b/WordPress/Tests/WhiteSpace/OperatorSpacingUnitTest.inc index e58abf8cd0..eed51cbd42 100644 --- a/WordPress/Tests/WhiteSpace/OperatorSpacingUnitTest.inc +++ b/WordPress/Tests/WhiteSpace/OperatorSpacingUnitTest.inc @@ -75,3 +75,7 @@ function fooBar( TypeA&namespace\TypeB $param ) : \TypeC&Partially\Qualified {} class Foo { public readonly int|string $prop; } + +// Safeguard that declare statements are ignored. +// Ref: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/289 +declare(ticks=1); diff --git a/WordPress/Tests/WhiteSpace/OperatorSpacingUnitTest.inc.fixed b/WordPress/Tests/WhiteSpace/OperatorSpacingUnitTest.inc.fixed index 43ab5ae914..ef8fa828b2 100644 --- a/WordPress/Tests/WhiteSpace/OperatorSpacingUnitTest.inc.fixed +++ b/WordPress/Tests/WhiteSpace/OperatorSpacingUnitTest.inc.fixed @@ -75,3 +75,7 @@ function fooBar( TypeA&namespace\TypeB $param ) : \TypeC&Partially\Qualified {} class Foo { public readonly int|string $prop; } + +// Safeguard that declare statements are ignored. +// Ref: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/289 +declare(ticks=1);