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) {