Skip to content

Commit

Permalink
Add strict type coding style rule
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Aug 19, 2023
1 parent 7a9892e commit 568daf2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,13 @@
<exclude-pattern>tests/Fixture/</exclude-pattern>

<rule ref="WoohooLabs"/>

<!-- Require presence of declare(strict_types=1) -->
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="linesCountBeforeDeclare" value="1"/>
<property name="spacesCountAroundEqualsSign" value="0"/>
<property name="linesCountAfterDeclare" value="1"/>
</properties>
</rule>
</ruleset>

0 comments on commit 568daf2

Please sign in to comment.