Skip to content

Commit 75a9230

Browse files
committed
fix!: signature of createFromTimestamp() for PHP 8.4
1 parent e1413fd commit 75a9230

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎system/I18n/TimeTrait.php‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,9 @@ public static function createFromFormat($format, $datetime, $timezone = null)
261261
*
262262
* @param DateTimeZone|string|null $timezone
263263
*
264-
* @return self
265-
*
266264
* @throws Exception
267265
*/
268-
public static function createFromTimestamp(int $timestamp, $timezone = null, ?string $locale = null)
266+
public static function createFromTimestamp(float|int $timestamp, $timezone = null, ?string $locale = null): static
269267
{
270268
$time = new self(gmdate('Y-m-d H:i:s', $timestamp), 'UTC', $locale);
271269

0 commit comments

Comments
 (0)