mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 22:01:48 +01:00
e61c593a2c
Also simplified the return type from `static|false` to `static`, since the method throws at all times, on failure. On PHP 7.x, it could only fail if an invalid type was passed in, which is not really valid anyway, from a type perspective. Ref (PHP 8.1.x):32d55f7422/ext/date/php_date.c (L3212-L3228)
Ref (PHP 7.0.33):bf574c2b67/ext/date/php_date.c (L3447-L3463)