diff --git a/src/Sleep.php b/src/Sleep.php index e89841e..dc8dd56 100644 --- a/src/Sleep.php +++ b/src/Sleep.php @@ -134,12 +134,12 @@ public static function for($duration) /** * Sleep until the given timestamp. * - * @param DateTimeInterface|int $timestamp + * @param DateTimeInterface|int|float|numeric-string $timestamp * @return static */ public static function until($timestamp) { - if (is_int($timestamp)) { + if (is_numeric($timestamp)) { $timestamp = Carbon::createFromTimestamp($timestamp); }