Skip to content

Commit 26e9f86

Browse files
committed
fix build
1 parent a83746a commit 26e9f86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/Rules/Api/NodeConnectingVisitorAttributesRule.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public function processNode(Node $node, Scope $scope): array
3737
}
3838

3939
$args = $node->getArgs();
40-
if (!isset($args[0])) {
40+
$keyArg = ArgumentsNormalizer::getArgByPositionOrName($args, 0, 'key');
41+
if ($keyArg === null) {
4142
return [];
4243
}
4344

@@ -47,7 +48,6 @@ public function processNode(Node $node, Scope $scope): array
4748
}
4849

4950
$messages = [];
50-
$keyArg = ArgumentsNormalizer::getArgByPositionOrName($args, 0, 'key');
5151
$argType = $scope->getType($keyArg->value);
5252
foreach ($argType->getConstantStrings() as $constantString) {
5353
$argValue = $constantString->getValue();

0 commit comments

Comments
 (0)