Skip to content

Commit ce78fce

Browse files
Merge branch 'validate-on-whereuuid-scope'
2 parents 160d9ea + eb09bc4 commit ce78fce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/GeneratesUuid.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,13 @@ protected function bytesFromUuid($uuid): array
165165
*/
166166
protected function normaliseUuids($uuid): array
167167
{
168-
$uuid = array_map(fn ($uuid) => Str::lower($uuid), Arr::wrap($uuid));
168+
$uuid = array_map(function ($uuid) {
169+
return Str::lower($uuid);
170+
}, Arr::wrap($uuid));
169171

170-
$uuid = array_filter($uuid, fn ($uuid) => Uuid::isValid($uuid));
172+
$uuid = array_filter($uuid, function ($uuid) {
173+
return Uuid::isValid($uuid);
174+
});
171175

172176
return $uuid;
173177
}

0 commit comments

Comments
 (0)