mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Removed DateTimeImmutable::getTimezone()
from the CallMap: fully covered by stub
Note: also verified that a `DateTimeImmutable#getTimezone()` always returns a default timezone (initialized internally), and therefore restricted the type a bit.
This commit is contained in:
parent
7ee12c7493
commit
2b6fddf88d
@ -1802,7 +1802,6 @@ return [
|
||||
'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::getTimezone' => ['DateTimeZone|false'],
|
||||
'DateTimeImmutable::modify' => ['static', 'modify'=>'string'],
|
||||
'DateTimeImmutable::setDate' => ['static|false', 'year'=>'int', 'month'=>'int', 'day'=>'int'],
|
||||
'DateTimeImmutable::setISODate' => ['static|false', 'year'=>'int', 'week'=>'int', 'day='=>'int'],
|
||||
|
@ -1063,7 +1063,6 @@ return [
|
||||
'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::getTimezone' => ['DateTimeZone|false'],
|
||||
'DateTimeImmutable::modify' => ['static', 'modify'=>'string'],
|
||||
'DateTimeImmutable::setDate' => ['static|false', 'year'=>'int', 'month'=>'int', 'day'=>'int'],
|
||||
'DateTimeImmutable::setISODate' => ['static|false', 'year'=>'int', 'week'=>'int', 'day='=>'int'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user