Skip to content

Commit

Permalink
Update ListOfValidation.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ilario-pierbattista authored Nov 10, 2023
1 parent 89fa71f commit 8c4c8b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Validation/ListOfValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static function reduceToSuccessOrAllFailures(array $validations): Validat
}
}

if (! empty($errors)) {
if (!empty($errors)) {
return Validation::failures(\array_merge([], ...$errors));
}

Expand Down Expand Up @@ -96,7 +96,7 @@ function ($x) use ($k, &$results): void {
);
}

if (! empty($errors)) {
if (!empty($errors)) {
/** @var list<list<VError>> $errors */
$failures = Validation::failures(\array_merge(...$errors));
/** @var VP $failures */
Expand Down

0 comments on commit 8c4c8b7

Please sign in to comment.