Skip to content

Commit ddba2f4

Browse files
committed
Add exceptions for strict_types for certain directories
1 parent c3f05c9 commit ddba2f4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

phpcs.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@
2121
<rule ref="PSR12"/>
2222
<rule ref="vendor/simplesamlphp/simplesamlphp-test-framework/phpcs-simplesamlphp.xml"/>
2323

24+
<!-- Require the file to start with a declare(strict_types=1); -->
25+
<rule ref="Generic.PHP.RequireStrictTypes">
26+
<exclude-pattern>*/attributemap/*</exclude-pattern>
27+
<exclude-pattern>*/config/*</exclude-pattern>
28+
<exclude-pattern>*/metadata/*</exclude-pattern>
29+
</rule>
30+
2431
<!-- Lines can be a little bit longer before they break the build -->
2532
<rule ref="Generic.Files.LineLength">
2633
<properties>

0 commit comments

Comments
 (0)