Skip to content

Commit 5e09aa5

Browse files
committed
add Normalizer
fixed toArray
1 parent 8a92027 commit 5e09aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Casts/InputValue/InputValueOnlyBaseTypeCast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class InputValueOnlyBaseTypeCast implements InputValueCastInterface
1414
{
1515
public function match(mixed $value, DataCollection $collection, InputValueContext $context): bool
1616
{
17-
return $value && $collection->isNullable() === false && count($collection->getTypes()) == 1 ;
17+
return $value !== null && $collection->isNullable() === false && count($collection->getTypes()) == 1 ;
1818
}
1919

2020
public function resolve(mixed $value, DataCollection $collection, InputValueContext $context): mixed

0 commit comments

Comments
 (0)