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 3e62c28 commit dceb2a0Copy full SHA for dceb2a0
src/Types/GraphQLEnum.php
@@ -64,7 +64,7 @@ public function parseValue($value)
64
);
65
}
66
67
- if(!in_array($value, $this->values)){
+ if(!array_key_exists($value, $this->values)){
68
throw new GraphQLError(
69
"Value \"{$value}\" does not exist in \"{$this->getName()}\" enum."
70
0 commit comments