diff --git a/src/Types/NullableType.php b/src/Types/NullableType.php index 200c570..97d1af6 100644 --- a/src/Types/NullableType.php +++ b/src/Types/NullableType.php @@ -6,7 +6,6 @@ final class NullableType implements Type { - /** * @var Type|callable */ @@ -20,7 +19,7 @@ public function __construct(Type $type) public function __invoke($value) { if ($value === null) { - return null; + return; } return ($this->type)($value);