Skip to content

Commit 9bd561b

Browse files
committed
address feedback
1 parent 2acf585 commit 9bd561b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Php/DateFunctionReturnTypeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function getTypeFromFormatType(Type $formatType, bool $useMicrosec): Type
2929

3030
if (count($types) === 0) {
3131
$types[] = $formatType->isNonEmptyString()->yes()
32-
? new IntersectionType([new StringType(), new AccessoryNonEmptyStringType()])
32+
? new IntersectionType([new StringType(), new AccessoryNonEmptyStringType(), new AccessoryNonFalsyStringType()])
3333
: new StringType();
3434
}
3535

0 commit comments

Comments
 (0)