From 0c311420ab21fa1a22541db726458cccdbe3d55f Mon Sep 17 00:00:00 2001 From: Jeremy Bloomstrom Date: Sun, 22 Nov 2020 15:03:13 -0900 Subject: [PATCH 1/2] InteractsWithTime@travelTo parity with Carbon::setTestNow type hint --- .../Foundation/Testing/Concerns/InteractsWithTime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php index 184a2441ce86..c280a4011a40 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php @@ -22,11 +22,11 @@ public function travel($value) /** * Travel to another time. * - * @param \DateTimeInterface $date + * @param \DateTimeInterface|Closure|Carbon|string|false|null $date * @param callable|null $callback * @return mixed */ - public function travelTo(DateTimeInterface $date, $callback = null) + public function travelTo($date, $callback = null) { Carbon::setTestNow($date); From 17b9da4ab9a5258c3dd6f86ca0d9fdc54cc37152 Mon Sep 17 00:00:00 2001 From: Jeremy Bloomstrom Date: Sun, 22 Nov 2020 15:40:46 -0900 Subject: [PATCH 2/2] fix styleci issue --- src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php index c280a4011a40..f109d21f428a 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php @@ -2,7 +2,6 @@ namespace Illuminate\Foundation\Testing\Concerns; -use DateTimeInterface; use Illuminate\Foundation\Testing\Wormhole; use Illuminate\Support\Carbon;