From be4b6d9e85e30363c98191c059fed194157a29cf Mon Sep 17 00:00:00 2001 From: Jeremy Bloomstrom Date: Mon, 23 Nov 2020 14:02:46 -0900 Subject: [PATCH] Remove typehint on InteractsWithTime::travelTo for parity with Carbon::setTestNow --- .../Foundation/Testing/Concerns/InteractsWithTime.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php index 184a2441ce86..de0cd40c99e5 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; @@ -22,11 +21,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);