Skip to content

Commit fe69991

Browse files
authored
Merge pull request overblog#746 from overblog/Vincz-patch-2
Fix parser on enum
2 parents 09d8ad8 + eb5f1db commit fe69991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Config/Parser/AnnotationParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ private static function scalarAnnotationToGQLConfiguration(GraphClass $graphClas
408408
*/
409409
private static function enumAnnotationToGQLConfiguration(GraphClass $graphClass, GQL\Enum $enumAnnotation): array
410410
{
411-
$enumValues = $enumAnnotation->values ? $enumAnnotation->values : [];
411+
$enumValues = $enumAnnotation->values ?? [];
412412

413413
$values = [];
414414

0 commit comments

Comments
 (0)