mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Added DateTime::createFromImmutable()
It's available in PHP 7.3, see [FR 74668](https://bugs.php.net/bug.php?id=74668) and php/php-src#2484
This commit is contained in:
parent
d78c70d521
commit
0358719037
@ -1686,6 +1686,7 @@ return [
|
||||
'DateTime::__wakeup' => ['void'],
|
||||
'DateTime::add' => ['static', 'interval'=>'DateInterval'],
|
||||
'DateTime::createFromFormat' => ['static|false', 'format'=>'string', 'time'=>'string', 'timezone='=>'DateTimeZone|null'],
|
||||
'DateTime::createFromImmutable' => ['static', 'object' => 'DateTimeImmutable'],
|
||||
'DateTime::diff' => ['DateInterval', 'datetime2'=>'DateTimeInterface', 'absolute='=>'bool'],
|
||||
'DateTime::format' => ['string|false', 'format'=>'string'],
|
||||
'DateTime::getLastErrors' => ['array'],
|
||||
|
Loading…
Reference in New Issue
Block a user