Skip to content

Commit d0b7e7b

Browse files
committed
Fixed issue where all GraphQL enum values are treated as deprecated
1 parent 946d831 commit d0b7e7b

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/GraphQl/Schema/Type/Enum

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/GraphQl/Schema/Type/Enum/Enum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(EnumElement $configElement)
3333
$config['values'][$value->getValue()] = [
3434
'value' => $value->getValue(),
3535
'description' => $value->getDescription(),
36-
'deprecationReason'=> $value->getDeprecatedReason()
36+
'deprecationReason' => $value->getDeprecatedReason() ?: null
3737
];
3838
}
3939
parent::__construct($config);

0 commit comments

Comments
 (0)