From 46267e02a5f6547076053d64b697a3981ad7e3c7 Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Wed, 23 Oct 2024 08:12:26 +0900 Subject: [PATCH] Remove redundant PHP version check for enums This update simplifies the code by removing the PHP version check before calling the isEnum method. Since the project now requires a PHP version that supports enums, the conditional check is unnecessary. This change enhances readability and maintainability of the code. --- src/ClassParam.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClassParam.php b/src/ClassParam.php index fbf55942..ec5830af 100644 --- a/src/ClassParam.php +++ b/src/ClassParam.php @@ -64,7 +64,7 @@ public function __invoke(string $varName, array $query, InjectorInterface $injec assert(class_exists($this->type)); $refClass = (new ReflectionClass($this->type)); - if (PHP_VERSION_ID >= 80100 && $refClass->isEnum()) { + if ($refClass->isEnum()) { return $this->enum($this->type, $props, $varName); }