Skip to content

Commit c8c9c64

Browse files
committed
[Php81] Deprecate NewInInitializerRector as depends on context
1 parent c7d570d commit c8c9c64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rules/Php81/Rector/ClassMethod/NewInInitializerRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function getNodeTypes(): array
6161
public function refactor(Node $node): ?Node
6262
{
6363
throw new ShouldNotHappenException(sprintf(
64-
'"%s" is deprecated as opinionated and group size depends on context. Cannot be automated. Use manually where needed instead',
64+
'"%s" is deprecated as depends on context. Cannot be automated. Use manually where needed instead',
6565
self::class
6666
));
6767
}

0 commit comments

Comments
 (0)