Skip to content

Commit 3084cb9

Browse files
zonuexestaabm
andauthored
Update src/Rules/Api/NodeConnectingVisitorAttributesRule.php
Co-authored-by: Markus Staab <[email protected]>
1 parent 776e845 commit 3084cb9

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
@@ -43,7 +43,7 @@ public function processNode(Node $node, Scope $scope): array
4343
return [];
4444
}
4545
$argType = $scope->getType($args[0]->value);
46-
if (count($argType->getConstantStrings()) === 0) {
46+
if (count($argType->getConstantStrings()) !== 1) {
4747
return [];
4848
}
4949
$argValue = $argType->getConstantScalarValues()[0];

0 commit comments

Comments
 (0)