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); }