Skip to content

Commit 7bd031b

Browse files
committed
Deprecate StaticToSelfStaticMethodCallOnFinalClassRector and ConvertStaticPrivateConstantToSelfRector
1 parent 68dd40a commit 7bd031b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rules/CodeQuality/Rector/ClassConstFetch/ConvertStaticPrivateConstantToSelfRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function getNodeTypes(): array
6969
public function refactor(Node $node): ?Class_
7070
{
7171
throw new ShouldNotHappenException(sprintf(
72-
'The % rule is deprecated. Use %s instead',
72+
'The %s rule is deprecated. Use %s instead',
7373
self::class,
7474
ConvertStaticToSelfRector::class,
7575
));

rules/CodeQuality/Rector/Class_/StaticToSelfStaticMethodCallOnFinalClassRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function getNodeTypes(): array
6767
public function refactor(Node $node): ?Class_
6868
{
6969
throw new ShouldNotHappenException(sprintf(
70-
'The % rule is deprecated. Use %s instead',
70+
'The %s rule is deprecated. Use %s instead',
7171
self::class,
7272
ConvertStaticToSelfRector::class,
7373
));

0 commit comments

Comments
 (0)