Commit 99bbf6bf627c904bfecdeee52c23a1b1586691ca

Authored by Сергей П
1 parent 0388bf4f0b
Exists in master

Фикс

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

app/Enums/WorkerStatuses.php
... ... @@ -25,11 +25,11 @@ enum WorkerStatuses: int
25 25 }
26 26  
27 27 public static function getWorkerStatuses(): array {
28   - $statuses_names = self::names();
  28 + $statuses = self::cases();
29 29  
30 30 $result = [];
31   - foreach ($statuses_names as $status_name){
32   - $result[self::{$status_name}->value] = self::{$status_name}->label();
  31 + foreach ($statuses as $status) {
  32 + $result[$status->value] = $status->label();
33 33 }
34 34 return $result;
35 35 }