Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Update style suggestion reported by CS fixer (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-georgiev authored May 12, 2019
1 parent 5e2d39b commit fee2c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Types/TypeValidationError.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public static function unionTypeValidationFailed($property, array $errorsGrouped
foreach ($errorsGroupedByTypes as $type => $typeErrors) {
$message = \array_reduce($typeErrors, static function ($acc, self $error) {
return $acc . ((string) $error . ', ');
}, "${type} (");
}, "{$type} (");

$errors[] = \substr($message, 0, \strlen($message) - 2) . ')';
}
Expand Down

0 comments on commit fee2c35

Please sign in to comment.