diff --git a/src/ClassParam.php b/src/ClassParam.php index fbf55942..0da2fdbb 100644 --- a/src/ClassParam.php +++ b/src/ClassParam.php @@ -24,8 +24,6 @@ use function preg_replace; use function strtolower; -use const PHP_VERSION_ID; - final class ClassParam implements ParamInterface { private readonly string $type; @@ -64,7 +62,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); } diff --git a/src/HttpRequestCurl.php b/src/HttpRequestCurl.php index f4eabda2..90dbb9eb 100644 --- a/src/HttpRequestCurl.php +++ b/src/HttpRequestCurl.php @@ -44,7 +44,7 @@ public function __construct( ) { } - /** @inheritdoc */ + /** @inheritDoc */ public function request(string $method, string $uri, array $query): array { $body = http_build_query($query);