Skip to content

Commit 14f32b7

Browse files
committed
Using nullsafe method call on non-nullable type ReflectionNamedType
1 parent 370ecba commit 14f32b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Attribute/PropertyEnum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function toArray(): array
3434
}
3535

3636
return array_merge(parent::toArray(), [
37-
'type' => PropertyTypeTranslator::translate($enum->getBackingType()?->getName()),
37+
'type' => PropertyTypeTranslator::translate($enum->getBackingType()->getName()),
3838
'enum' => array_map(
3939
static fn (ReflectionEnumBackedCase $case) => $case->getBackingValue(),
4040
$enum->getCases()

0 commit comments

Comments
 (0)