Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Aug 18, 2024
1 parent f72be26 commit e45c6a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/console/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function bindActionParams($action, $params)
if ($param->isVariadic()) {
for ($j = array_search($key, $paramKeys); $j < count($paramKeys); $j++) {
$jKey = $paramKeys[$j];
if ($j !== $key && !is_int($j)) {
if ($jKey !== $key && !is_int($jKey)) {
break;

Check warning on line 220 in framework/console/Controller.php

View check run for this annotation

Codecov / codecov/patch

framework/console/Controller.php#L220

Added line #L220 was not covered by tests
}
$args[] = $actionParams[$key][] = $params[$jKey];
Expand Down

0 comments on commit e45c6a4

Please sign in to comment.