From 14f32b7330c31efb02d600a92807cae957f8e5c4 Mon Sep 17 00:00:00 2001 From: Ferror Date: Sun, 7 Jan 2024 22:36:52 +0100 Subject: [PATCH] Using nullsafe method call on non-nullable type ReflectionNamedType --- src/Attribute/PropertyEnum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Attribute/PropertyEnum.php b/src/Attribute/PropertyEnum.php index e5c7c7d..28737f0 100644 --- a/src/Attribute/PropertyEnum.php +++ b/src/Attribute/PropertyEnum.php @@ -34,7 +34,7 @@ public function toArray(): array } return array_merge(parent::toArray(), [ - 'type' => PropertyTypeTranslator::translate($enum->getBackingType()?->getName()), + 'type' => PropertyTypeTranslator::translate($enum->getBackingType()->getName()), 'enum' => array_map( static fn (ReflectionEnumBackedCase $case) => $case->getBackingValue(), $enum->getCases()