Skip to content

Commit

Permalink
Add more final keyword test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
klausi committed Dec 28, 2024
1 parent 903c13f commit 83ef2a0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,14 @@ $anon = new readonly class {};
class FinalTest {
final public static function create(ContainerInterface $container) {}
}

final class FinalTest2 {
}

final abstract class FinalTest3 {
}

class FinalTest4 {
final const X = "foo";
final public const Y = "bar";
}
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,14 @@ $anon = new readonly class {};
class FinalTest {
final public static function create(ContainerInterface $container) {}
}

final class FinalTest2 {
}

final abstract class FinalTest3 {
}

class FinalTest4 {
final const X = "foo";
final public const Y = "bar";
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ public function getErrorList($testFile='')
145 => 1,
149 => 1,
152 => 1,
155 => 1,
158 => 1,
162 => 1,
163 => 1,
];

case 'ScopeKeywordSpacingUnitTest.3.inc':
Expand Down

0 comments on commit 83ef2a0

Please sign in to comment.