We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 073d294 commit 29a507bCopy full SHA for 29a507b
1 file changed
src/Type/Definition/PhpEnumType.php
@@ -108,10 +108,7 @@ protected function extractDescription(\ReflectionClassConstant|\ReflectionClass
108
$attributes = $reflection->getAttributes(Description::class);
109
110
if (count($attributes) === 1) {
111
- $description = $attributes[0]->newInstance();
112
- assert($description instanceof Description);
113
-
114
- return $description->description;
+ return $attributes[0]->newInstance()->description;
115
}
116
117
if (count($attributes) > 1) {
0 commit comments