We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a92027 commit 5e09aa5Copy full SHA for 5e09aa5
src/Casts/InputValue/InputValueOnlyBaseTypeCast.php
@@ -14,7 +14,7 @@ class InputValueOnlyBaseTypeCast implements InputValueCastInterface
14
{
15
public function match(mixed $value, DataCollection $collection, InputValueContext $context): bool
16
17
- return $value && $collection->isNullable() === false && count($collection->getTypes()) == 1 ;
+ return $value !== null && $collection->isNullable() === false && count($collection->getTypes()) == 1 ;
18
}
19
20
public function resolve(mixed $value, DataCollection $collection, InputValueContext $context): mixed
0 commit comments