From 4dd1f44b06a9ab4d9f99251bbfe3ab9c28a59bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Slischka?= Date: Thu, 27 May 2021 18:01:31 +0200 Subject: [PATCH] Fixed bug --- src/Enum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Enum.php b/src/Enum.php index 869a7a0..1a41655 100644 --- a/src/Enum.php +++ b/src/Enum.php @@ -151,7 +151,7 @@ public static function isValidValue( $value ): bool { - return \in_array($value, self::getAvailableValues(), true); + return \in_array($value, static::getAvailableValues(), true); } protected function checkSameEnum(