From d949165eb6732c7af47ad76713fe870636bca4aa Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Thu, 21 Sep 2017 15:37:05 -0400 Subject: [PATCH] Fix #217 - bad param count for DateTimeImmutable::getTimezone --- src/Psalm/CallMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/CallMap.php b/src/Psalm/CallMap.php index 7360dd4e1..560d9e5dc 100644 --- a/src/Psalm/CallMap.php +++ b/src/Psalm/CallMap.php @@ -1136,7 +1136,7 @@ return [ 'DateTimeImmutable::getLastErrors' => ['array'], 'DateTimeImmutable::getOffset' => ['int'], 'DateTimeImmutable::getTimestamp' => ['int'], -'DateTimeImmutable::getTimezone' => ['DateTimeZone', 'object'=>'DateTime'], +'DateTimeImmutable::getTimezone' => ['DateTimeZone'], 'DateTimeImmutable::modify' => ['DateTimeImmutable', 'modify'=>'string'], 'DateTimeImmutable::setDate' => ['DateTimeImmutable', 'year'=>'int', 'month'=>'int', 'day'=>'int'], 'DateTimeImmutable::setISODate' => ['DateTimeImmutable', 'year'=>'int', 'week'=>'int', 'day='=>'int'],