@@ -38,7 +38,7 @@ public function fromClassReflection(
3838 }
3939
4040 $ enumIface = null ;
41- if (PHP_VERSION_ID >= 80100 && $ from ->isEnum ()) {
41+ if ($ from ->isEnum ()) {
4242 $ class = new EnumType ($ from ->getShortName (), new PhpNamespace ($ from ->getNamespaceName ()));
4343 $ from = new \ReflectionEnum ($ from ->getName ());
4444 $ enumIface = $ from ->isBacked () ? \BackedEnum::class : \UnitEnum::class;
@@ -214,7 +214,7 @@ public function fromParameterReflection(\ReflectionParameter $from): Parameter
214214 $ property = $ from ->getDeclaringClass ()->getProperty ($ from ->name );
215215 $ param = (new PromotedParameter ($ from ->name ))
216216 ->setVisibility ($ this ->getVisibility ($ property ))
217- ->setReadOnly (PHP_VERSION_ID >= 80100 && $ property ->isReadonly ())
217+ ->setReadOnly ($ property ->isReadonly ())
218218 ->setFinal (PHP_VERSION_ID >= 80500 && $ property ->isFinal () && !$ property ->isPrivateSet ());
219219 $ this ->addHooks ($ property , $ param );
220220 } else {
@@ -248,7 +248,7 @@ public function fromConstantReflection(\ReflectionClassConstant $from): Constant
248248 $ const = new Constant ($ from ->name );
249249 $ const ->setValue ($ from ->getValue ());
250250 $ const ->setVisibility ($ this ->getVisibility ($ from ));
251- $ const ->setFinal (PHP_VERSION_ID >= 80100 && $ from ->isFinal ());
251+ $ const ->setFinal ($ from ->isFinal ());
252252 $ const ->setComment (Helpers::unformatDocComment ((string ) $ from ->getDocComment ()));
253253 $ const ->setAttributes ($ this ->getAttributes ($ from ));
254254 return $ const ;
@@ -274,7 +274,7 @@ public function fromPropertyReflection(\ReflectionProperty $from): Property
274274 $ prop ->setVisibility ($ this ->getVisibility ($ from ));
275275 $ prop ->setType ((string ) $ from ->getType ());
276276 $ prop ->setInitialized ($ from ->hasType () && array_key_exists ($ prop ->getName (), $ defaults ));
277- $ prop ->setReadOnly (PHP_VERSION_ID >= 80100 && $ from ->isReadOnly ());
277+ $ prop ->setReadOnly ($ from ->isReadOnly ());
278278 $ prop ->setComment (Helpers::unformatDocComment ((string ) $ from ->getDocComment ()));
279279 $ prop ->setAttributes ($ this ->getAttributes ($ from ));
280280
0 commit comments