Skip to content

Commit f004ebc

Browse files
committed
Fix DateTime::format('u') for math
1 parent db46c94 commit f004ebc

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
@@ -76,7 +76,7 @@ public function buildReturnTypeFromFormat(string $formatString, bool $useMicrose
7676
return $this->buildNumericRangeType(0, 1, false);
7777
case 'u':
7878
return $useMicrosec
79-
? new IntersectionType([new StringType(), new AccessoryNonFalsyStringType()])
79+
? new IntersectionType([new StringType(), new AccessoryNumericStringType()])
8080
: new ConstantStringType('000000');
8181
}
8282

0 commit comments

Comments
 (0)