Skip to content

Commit c7148b7

Browse files
Fixed issues with phpcs tests on PHP 8 syntaxes
1 parent 7692bca commit c7148b7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

phpcs.xml.dist

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@
2121
<!-- Include full PSR-12 Coding Standard -->
2222
<rule ref="PSR12"/>
2323

24-
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration.FirstParamSpacing">
24+
<rule ref="PSR2.Classes.PropertyDeclaration.SpacingAfterType">
2525
<exclude-pattern>*/tests/Fixtures/Annotation/Attribute/GlobalDefaultsClass.php</exclude-pattern>
2626
</rule>
27+
28+
<rule ref="PSR2.Classes.PropertyDeclaration.ScopeMissing">
29+
<exclude-pattern>*/tests/Fixtures/Annotation/Attribute/GlobalDefaultsClass.php</exclude-pattern>
30+
</rule>
31+
32+
<rule ref="PSR12.Files.FileHeader.IncorrectOrder">
33+
<exclude-pattern>*/tests/Fixtures/Sample.php</exclude-pattern>
34+
</rule>
2735
</ruleset>

tests/Fixtures/Sample.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* @Annotation
2626
* @Target({"CLASS", "METHOD", "PROPERTY"})
2727
*/
28+
2829
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY | \Attribute::TARGET_CLASS_CONSTANT | \Attribute::TARGET_PARAMETER)]
2930
final class Sample
3031
{

0 commit comments

Comments
 (0)