Skip to content

Commit 53ed8c3

Browse files
committed
Require latest slevomat/coding-standard
7.0.0 renames some DeclareStrictTypes options and changes meaning, previously newlines were counted, now just lines. Where there was one newline between the opening tag and the `declare`, there's now no line (but still one newline).
1 parent ce3c61f commit 53ed8c3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
],
1212
"require": {
1313
"php": "^7.1 || ^8.0",
14-
"squizlabs/php_codesniffer": "^3.5.6",
15-
"slevomat/coding-standard": "^6.4.0"
14+
"squizlabs/php_codesniffer": "^3.6.0",
15+
"slevomat/coding-standard": "^7.0.0"
1616
},
1717
"autoload": {
1818
"psr-4": {"Spaze\\CodingStandard\\": "src"}

src/ruleset.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
</rule>
9292
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
9393
<properties>
94-
<property name="newlinesCountBetweenOpenTagAndDeclare" value="1"/>
95-
<property name="newlinesCountAfterDeclare" value="2"/>
94+
<property name="linesCountBeforeDeclare" value="0"/>
95+
<property name="linesCountAfterDeclare" value="1"/>
9696
<property name="spacesCountAroundEqualsSign" value="1"/>
9797
</properties>
9898
</rule>

0 commit comments

Comments
 (0)