From fe8dd49e6e11b2360beca47289b3d0fd50bcf842 Mon Sep 17 00:00:00 2001 From: Corey Taylor Date: Sun, 26 Oct 2025 09:33:38 -0500 Subject: [PATCH] Fix createFromTimestamp() deprecation message --- phpunit.xml.dist | 5 +++++ src/Traits/FactoryTrait.php | 1 + 2 files changed, 6 insertions(+) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 38fedcf6..6aa16b83 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -11,4 +11,9 @@ src/ + + + + + diff --git a/src/Traits/FactoryTrait.php b/src/Traits/FactoryTrait.php index 4a036581..5ebae315 100644 --- a/src/Traits/FactoryTrait.php +++ b/src/Traits/FactoryTrait.php @@ -336,6 +336,7 @@ public static function createFromArray(array $values): ChronosInterface * @param \DateTimeZone|string|null $tz The DateTimeZone object or timezone name the new instance should use. * @return static */ + #[\ReturnTypeWillChange] public static function createFromTimestamp(float|int $timestamp, $tz = null): ChronosInterface { $instance = static::now($tz)->setTimestamp($timestamp);