Skip to content

Commit 32f11bb

Browse files
committed
fixup! add static call support to AssertSameCountOnCollectionToAssertCountRector
1 parent f403180 commit 32f11bb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php

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

55
namespace Rector\Doctrine\TypedCollections\Rector\MethodCall;
66

7+
use PhpParser\Node\Expr\StaticCall;
78
use PhpParser\Node;
89
use PhpParser\Node\Arg;
910
use PhpParser\Node\Expr\MethodCall;
@@ -64,14 +65,14 @@ public function test(): void
6465

6566
public function getNodeTypes(): array
6667
{
67-
return [MethodCall::class, Node\Expr\StaticCall::class];
68+
return [MethodCall::class, StaticCall::class];
6869

6970
}
7071

7172
/**
72-
* @param MethodCall|Node\Expr\StaticCall $node
73+
* @param MethodCall|StaticCall $node
7374
*/
74-
public function refactor(Node $node): MethodCall|Node\Expr\StaticCall|null
75+
public function refactor(Node $node): MethodCall|StaticCall|null
7576
{
7677
if ($node->isFirstClassCallable()) {
7778
return null;

0 commit comments

Comments
 (0)