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 2acf585 commit 9bd561bCopy full SHA for 9bd561b
src/Type/Php/DateFunctionReturnTypeHelper.php
@@ -29,7 +29,7 @@ public function getTypeFromFormatType(Type $formatType, bool $useMicrosec): Type
29
30
if (count($types) === 0) {
31
$types[] = $formatType->isNonEmptyString()->yes()
32
- ? new IntersectionType([new StringType(), new AccessoryNonEmptyStringType()])
+ ? new IntersectionType([new StringType(), new AccessoryNonEmptyStringType(), new AccessoryNonFalsyStringType()])
33
: new StringType();
34
}
35
0 commit comments