diff --git a/src/Collections/CollectionRepository.php b/src/Collections/CollectionRepository.php index aefc6ea1..ccb1f7a0 100644 --- a/src/Collections/CollectionRepository.php +++ b/src/Collections/CollectionRepository.php @@ -13,7 +13,7 @@ class CollectionRepository extends StacheRepository public function updateEntryUris($collection, $ids = null) { $query = $collection->queryEntries() - ->when($ids, fn () => $query->whereIn('id', $ids)) + ->when($ids, fn ($query) => $query->whereIn('id', $ids)) ->get() ->each(function ($entry) { app('statamic.eloquent.entries.model')::find($entry->id())->update(['uri' => $entry->uri()]); @@ -80,7 +80,7 @@ public static function bindings(): array public function updateEntryOrder(CollectionContract $collection, $ids = null) { $query = $collection->queryEntries() - ->when($ids, fn () => $query->whereIn('id', $ids)) + ->when($ids, fn ($query) => $query->whereIn('id', $ids)) ->get(['id']) ->each(function ($entry) { $dispatch = UpdateCollectionEntryOrder::dispatch($entry->id());