From 9db9b2e38ea2806a76aceedc6f5e7935c72ce1e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Tue, 16 Jul 2024 10:38:12 +0300 Subject: [PATCH] uncommited files --- 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