File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -332,11 +332,11 @@ public static function createFromArray(array $values): ChronosInterface
332332 /**
333333 * Create a ChronosInterface instance from a timestamp
334334 *
335- * @param int $timestamp The timestamp to create an instance from.
335+ * @param float| int $timestamp The timestamp to create an instance from.
336336 * @param \DateTimeZone|string|null $tz The DateTimeZone object or timezone name the new instance should use.
337337 * @return static
338338 */
339- public static function createFromTimestamp (int $ timestamp , $ tz = null ): ChronosInterface
339+ public static function createFromTimestamp (float | int $ timestamp , $ tz = null ): ChronosInterface
340340 {
341341 $ instance = static ::now ($ tz )->setTimestamp ($ timestamp );
342342 if (get_class ($ instance ) === ChronosDate::class) {
You can’t perform that action at this time.
0 commit comments