Skip to content

Commit 4212316

Browse files
committed
PHP 8.4 | Squiz/ScopeKeywordSpacing: add tests with final properties
1 parent 335e7be commit 4212316

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.1.inc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,8 @@ class ConstantVisibility {
187187
protected const PROTECTED_SPACING_INCORRECT = true;
188188
private const PRIVATE_SPACING_INCORRECT = true;
189189
}
190+
191+
class FinalProperties {
192+
final readonly public ?MyType $spacing_correct;
193+
protected final $spacing_incorrect = 'foo';
194+
}

src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.1.inc.fixed

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,8 @@ class ConstantVisibility {
180180
protected const PROTECTED_SPACING_INCORRECT = true;
181181
private const PRIVATE_SPACING_INCORRECT = true;
182182
}
183+
184+
class FinalProperties {
185+
final readonly public ?MyType $spacing_correct;
186+
protected final $spacing_incorrect = 'foo';
187+
}

src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function getErrorList($testFile='')
6969
186 => 1,
7070
187 => 1,
7171
188 => 1,
72+
193 => 2,
7273
];
7374

7475
case 'ScopeKeywordSpacingUnitTest.3.inc':

0 commit comments

Comments
 (0)