You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($hasNamedArguments && $arg->name === null && !$arg->unpack) {
92
92
$errors[] = RuleErrorBuilder::message('Named argument cannot be followed by a positional argument.')->line($arg->getLine())->nonIgnorable()->build();
93
93
}
94
+
if ($hasNamedArguments && $arg->unpack) {
95
+
$errors[] = RuleErrorBuilder::message('Named argument cannot be followed by an unpacked (...) argument.')->line($arg->getLine())->nonIgnorable()->build();
$errors[] = RuleErrorBuilder::message(sprintf('Argument for parameter $%s has already been passed.', $parameter->getName()))->build();
262
+
$errors[] = RuleErrorBuilder::message(sprintf('Argument for parameter $%s has already been passed.', $parameter->getName()))->line($argumentLine)->build();
246
263
continue;
247
264
}
248
265
@@ -265,7 +282,7 @@ static function (Type $type): bool {
265
282
) : $parameterDescription,
266
283
$parameterType->describe($verbosityLevel),
267
284
$argumentValueType->describe($verbosityLevel)
268
-
))->build();
285
+
))->line($argumentLine)->build();
269
286
}
270
287
271
288
if (
@@ -280,7 +297,7 @@ static function (Type $type): bool {
0 commit comments