Skip to content

Commit ad1e6bb

Browse files
zonuexestaabm
andcommitted
Update src/Rules/Api/NodeConnectingVisitorAttributesRule.php
Co-authored-by: Markus Staab <[email protected]>
1 parent 45f8ddb commit ad1e6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Api/NodeConnectingVisitorAttributesRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function processNode(Node $node, Scope $scope): array
4242
return [];
4343
}
4444
$argType = $scope->getType($args[0]->value);
45-
if (count($argType->getConstantStrings()) === 0) {
45+
if (count($argType->getConstantStrings()) !== 1) {
4646
return [];
4747
}
4848
$argValue = $argType->getConstantScalarValues()[0];

0 commit comments

Comments
 (0)