From 99bbf6bf627c904bfecdeee52c23a1b1586691ca Mon Sep 17 00:00:00 2001 From: Sergey Panarin Date: Tue, 16 Jul 2024 09:37:26 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Enums/WorkerStatuses.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Enums/WorkerStatuses.php b/app/Enums/WorkerStatuses.php index 529e85c..a215908 100644 --- a/app/Enums/WorkerStatuses.php +++ b/app/Enums/WorkerStatuses.php @@ -25,11 +25,11 @@ enum WorkerStatuses: int } public static function getWorkerStatuses(): array { - $statuses_names = self::names(); + $statuses = self::cases(); $result = []; - foreach ($statuses_names as $status_name){ - $result[self::{$status_name}->value] = self::{$status_name}->label(); + foreach ($statuses as $status) { + $result[$status->value] = $status->label(); } return $result; } -- 1.7.10.4