Skip to content

Commit 4d0bdc1

Browse files
committed
Fix
1 parent 50d0c8e commit 4d0bdc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Rules/Api/NodeConnectingVisitorAttributesRule.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use PHPStan\Type\Constant\ConstantStringType;
1414
use PHPStan\Type\ObjectType;
1515
use function array_keys;
16+
use function get_class;
1617
use function in_array;
1718
use function sprintf;
1819
use function strpos;
@@ -75,7 +76,7 @@ public function processNode(Node $node, Scope $scope): array
7576

7677
$isVisitorRegistered = false;
7778
foreach ($this->container->getServicesByTag(RichParser::VISITOR_SERVICE_TAG) as $service) {
78-
if ($service::class !== NodeConnectingVisitor::class) {
79+
if (get_class($service) !== NodeConnectingVisitor::class) {
7980
continue;
8081
}
8182

0 commit comments

Comments
 (0)