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

Commit

Permalink
Fix coercing values for enum type (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
crisu83 authored Oct 18, 2018
1 parent 656c461 commit 0d3b94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Execution/ValuesHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0d3b94c

Please sign in to comment.