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 17398d4 commit 4d2c86e
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 @@ -19,4 +19,13 @@
<file>tests/</file>

<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 4d2c86e

Please sign in to comment.