Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

Commit 0d3b94c

Browse files
authored
Fix coercing values for enum type (#307)
1 parent 656c461 commit 0d3b94c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Execution/ValuesHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ protected function coerceValueForEnumType(
361361
?Path $path
362362
): CoercedValue {
363363
if (\is_string($value) && null !== ($enumValue = $type->getValue($value))) {
364-
return new CoercedValue($enumValue, null);
364+
return new CoercedValue($enumValue);
365365
}
366366

367367
$suggestions = suggestionList((string)$value, \array_map(function (EnumValue $enumValue) {

0 commit comments

Comments
 (0)