From 0d3b94ca9f39e8babfc4a19efc98cac60d732578 Mon Sep 17 00:00:00 2001 From: Christoffer Niska <ChristofferNiska@gmail.com> Date: Thu, 18 Oct 2018 16:04:20 +0300 Subject: [PATCH] Fix coercing values for enum type (#307) --- src/Execution/ValuesHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Execution/ValuesHelper.php b/src/Execution/ValuesHelper.php index f2adaac3..781d6673 100644 --- a/src/Execution/ValuesHelper.php +++ b/src/Execution/ValuesHelper.php @@ -361,7 +361,7 @@ protected function coerceValueForEnumType( ?Path $path ): CoercedValue { if (\is_string($value) && null !== ($enumValue = $type->getValue($value))) { - return new CoercedValue($enumValue, null); + return new CoercedValue($enumValue); } $suggestions = suggestionList((string)$value, \array_map(function (EnumValue $enumValue) {