From a269395b9e06fedb882247ccb24c71a3931e86d8 Mon Sep 17 00:00:00 2001 From: Rev Date: Mon, 25 Oct 2021 23:51:28 +0900 Subject: [PATCH] fix getLocales method --- app/Data/ItemsCollection.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Data/ItemsCollection.php b/app/Data/ItemsCollection.php index b355488..808ea59 100644 --- a/app/Data/ItemsCollection.php +++ b/app/Data/ItemsCollection.php @@ -70,11 +70,11 @@ class ItemsCollection } /** - * @return Collection + * @return array */ - public function getLocales(): Collection + public function getLocales(): array { - return $this->locales->keys(); + return array_keys($this->locales); } /**