From fd52bf40591f5f1315f66fac31f2edf8afe00bbc Mon Sep 17 00:00:00 2001 From: Barney Laurance Date: Wed, 11 Nov 2020 17:29:14 +0000 Subject: [PATCH] Add link to Psalm issue --- src/ZonedDateTime.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ZonedDateTime.php b/src/ZonedDateTime.php index 2125373..7ef8f64 100644 --- a/src/ZonedDateTime.php +++ b/src/ZonedDateTime.php @@ -233,10 +233,7 @@ public static function fromDateTime(\DateTimeInterface $dateTime) : ZonedDateTim $dateTimeZone = $dateTime->getTimezone(); /** - * @psalm-suppress TypeDoesNotContainType - * - * Looks like Psalm might have a wrong return type for \DateTimeInterface::getTimeZone - it should - * be \DateTimeZone|false . Psalm seems to think it's just \DateTimeZone + * @psalm-suppress TypeDoesNotContainTyp - see https://github.com/vimeo/psalm/issues/4515 */ if ($dateTimeZone === false) { throw new DateTimeException('This DateTime object has no timezone.');