Skip to content

Commit 476d29e

Browse files
committed
Fix
1 parent 68e6c97 commit 476d29e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Rules/FunctionCallParametersCheck.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,12 +594,12 @@ private function processArguments(
594594
}
595595

596596
if ($namedArgumentAlreadyOccurred && $argumentName === null && !$unpack) {
597-
$errors[] = RuleErrorBuilder::message('Named argument cannot be followed by a positional argument.')
598-
->identifier('argument.positionalAfterNamed')
597+
$errors[] = RuleErrorBuilder::message(sprintf('Argument for parameter $%s has already been passed.', $parameter->getName()))
598+
->identifier('argument.duplicate')
599599
->line($argumentLine)
600-
->nonIgnorable()
601600
->build();
602601
$newArguments[$i] = [$argumentValue, $argumentValueType, $unpack, $argumentName, $argumentLine, null, null];
602+
603603
continue;
604604
}
605605

0 commit comments

Comments
 (0)