Skip to content

Commit

Permalink
fix cs#
Browse files Browse the repository at this point in the history
  • Loading branch information
ilario-pierbattista committed Nov 10, 2023
1 parent 8c4c8b7 commit 15b2f95
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 15b2f95

Please sign in to comment.