From cdd47b00ee7b0b87f4ebaec4a85c5f2281f0d049 Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Sun, 17 Nov 2024 15:56:16 +0100 Subject: [PATCH] update stan --- .phive/phars.xml | 4 ++-- phpstan.neon | 2 ++ src/Chronos.php | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.phive/phars.xml b/.phive/phars.xml index 80e9154..d311bfa 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,5 +1,5 @@ - - + + diff --git a/phpstan.neon b/phpstan.neon index 1f860a9..68575ca 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -7,6 +7,8 @@ parameters: - src/ ignoreErrors: - identifier: missingType.iterableValue + - identifier: property.readOnlyByPhpDocDefaultValue + - identifier: property.readOnlyByPhpDocAssignNotInConstructor - message: "#^Call to an undefined static method DateTimeImmutable\\:\\:createFromTimestamp\\(\\)\\.$#" count: 1 diff --git a/src/Chronos.php b/src/Chronos.php index 73dbbdf..b6c7955 100644 --- a/src/Chronos.php +++ b/src/Chronos.php @@ -752,7 +752,6 @@ public static function createFromTimestamp(float|int $timestamp, DateTimeZone|st * * @param \DateTimeZone|string|null $object The value to convert. * @return \DateTimeZone - * @throws \InvalidArgumentException */ protected static function safeCreateDateTimeZone(DateTimeZone|string|null $object): DateTimeZone {