Skip to content

Commit dceb2a0

Browse files
committed
fix bug in parseValue where values could not be found
1 parent 3e62c28 commit dceb2a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Types/GraphQLEnum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function parseValue($value)
6464
);
6565
}
6666

67-
if(!in_array($value, $this->values)){
67+
if(!array_key_exists($value, $this->values)){
6868
throw new GraphQLError(
6969
"Value \"{$value}\" does not exist in \"{$this->getName()}\" enum."
7070
);

0 commit comments

Comments
 (0)