Skip to content

Commit 72c73e3

Browse files
committed
[ci-review] Rector Rectify
1 parent 92fa8bb commit 72c73e3

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

rules/Transform/Rector/Assign/PropertyAssignToMethodCallRector.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Rector\Transform\Rector\Assign;
66

7+
use Rector\Exception\ShouldNotHappenException;
78
use PhpParser\Node;
89
use PhpParser\Node\Expr\Assign;
910
use Rector\Configuration\Deprecation\Contract\DeprecatedInterface;
@@ -18,11 +19,6 @@
1819
*/
1920
final class PropertyAssignToMethodCallRector extends AbstractRector implements ConfigurableRectorInterface, DeprecatedInterface
2021
{
21-
/**
22-
* @var PropertyAssignToMethodCall[]
23-
*/
24-
private array $propertyAssignsToMethodCalls = [];
25-
2622
public function getRuleDefinition(): RuleDefinition
2723
{
2824
return new RuleDefinition('Turn property assign of specific type and property name to method call', [
@@ -55,7 +51,7 @@ public function getNodeTypes(): array
5551
*/
5652
public function refactor(Node $node): ?Node
5753
{
58-
throw new \Rector\Exception\ShouldNotHappenException(sprintf(
54+
throw new ShouldNotHappenException(sprintf(
5955
'%s is deprecated as too narrow use-case and never used. Create custom rector instead if needed.',
6056
self::class
6157
));

0 commit comments

Comments
 (0)