From da4bf0cd1d01035bb6353ba4dcedcaafaa92fbb7 Mon Sep 17 00:00:00 2001 From: Anthony <407968526@qq.com> Date: Mon, 28 Feb 2022 15:07:23 +0800 Subject: [PATCH] fix --- src/Descriptions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Descriptions.php b/src/Descriptions.php index dbe3c77..cd6a1d8 100644 --- a/src/Descriptions.php +++ b/src/Descriptions.php @@ -9,6 +9,6 @@ trait Descriptions */ public static function descriptions(): array { - return array_map(fn($enum) => $enum->getDescription(), static::cases()); + return array_map(fn($case) => $case->getDescription(), static::cases()); } } \ No newline at end of file