From 1392a0d66c64a77e25af3d53afc4a9b3aa3e49d6 Mon Sep 17 00:00:00 2001 From: mattamon Date: Wed, 8 Jan 2025 15:17:55 +0100 Subject: [PATCH] Use static --- src/Util/Trait/EnumToValueArrayTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/Trait/EnumToValueArrayTrait.php b/src/Util/Trait/EnumToValueArrayTrait.php index 6977ddff6..55f938db0 100644 --- a/src/Util/Trait/EnumToValueArrayTrait.php +++ b/src/Util/Trait/EnumToValueArrayTrait.php @@ -23,6 +23,6 @@ trait EnumToValueArrayTrait { public static function values(): array { - return array_column(self::cases(), 'value'); + return array_column(static::cases(), 'value'); } }