Skip to content

Commit

Permalink
[HttpKernel] PR review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyachase committed Mar 4, 2024
1 parent 96831f1 commit e066726
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -106,7 +106,7 @@ public function getArguments(Request $request, callable $controller, ?\Reflectio
}

$reasons = array_map(static fn (NearMissValueResolverException $e) => $e->getMessage(), $valueResolverExceptions);
if (empty($reasons)) {
if (!$reasons) {
$reasons[] = 'Either the argument is nullable and no null value has been provided, no default value has been provided or there is a non-optional argument after this one.';
}

Expand Down

0 comments on commit e066726

Please sign in to comment.