Skip to content

Commit

Permalink
Merge pull request #24 from blue32a/23-slevomatcodingstandardtypehint…
Browse files Browse the repository at this point in the history
…sdeclarestricttypes-options-have-changed

Fixed SlevomatCodingStandard.TypeHints.DeclareStrictTypes options
  • Loading branch information
blue32a authored Jan 1, 2024
2 parents 3fe88f2 + 4cdf0c8 commit 720beca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Blue32a/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,10 @@
<!-- Require presence of declare(strict_types=1) -->
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="newlinesCountBetweenOpenTagAndDeclare" value="2"/>
<property name="declareOnFirstLine" value="false"/>
<property name="linesCountBeforeDeclare" value="1"/>
<property name="linesCountAfterDeclare" value="1"/>
<property name="spacesCountAroundEqualsSign" value="0"/>
<property name="newlinesCountAfterDeclare" value="2"/>
</properties>
</rule>
<!-- Require use of short versions of scalar types (i.e. int instead of integer) -->
Expand Down

0 comments on commit 720beca

Please sign in to comment.