1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

changed return types of callmap

This commit is contained in:
Daniel Kemper 2022-04-12 08:49:40 +02:00
parent 114aad4c23
commit 2ee7ba32c7
2 changed files with 5 additions and 1 deletions

View File

@ -1804,7 +1804,7 @@ return [
'DateTimeImmutable::format' => ['string', 'format'=>'string'],
'DateTimeImmutable::getLastErrors' => ['array{warning_count:int,warnings:array<int,string>,error_count:int,errors:array<int,string>}'],
'DateTimeImmutable::getOffset' => ['int'],
'DateTimeImmutable::getTimestamp' => ['int|false'],
'DateTimeImmutable::getTimestamp' => ['int'],
'DateTimeImmutable::getTimezone' => ['DateTimeZone|false'],
'DateTimeImmutable::modify' => ['static', 'modify'=>'string'],
'DateTimeImmutable::setDate' => ['static|false', 'year'=>'int', 'month'=>'int', 'day'=>'int'],

View File

@ -45,6 +45,10 @@ return [
'old' => ['int|false'],
'new' => ['int'],
],
'DateTimeInterface::getTimestamp' => [
'old' => ['int|false'],
'new' => ['int'],
],
'DateTimeImmutable::format' => [
'old' => ['string|false', 'format'=>'string'],
'new' => ['string', 'format'=>'string'],