From 84d33fb3e002cd46619136317c7e415bf16eb4bf Mon Sep 17 00:00:00 2001 From: abenettt Date: Thu, 9 Sep 2021 19:00:32 +0200 Subject: [PATCH] Align carbon call argument type with carbon payload. --- src/Ray.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ray.php b/src/Ray.php index 5710d9b4..34a19312 100644 --- a/src/Ray.php +++ b/src/Ray.php @@ -2,7 +2,7 @@ namespace Spatie\Ray; -use Carbon\Carbon; +use Carbon\CarbonInterface; use Closure; use Composer\InstalledVersions; use Exception; @@ -418,7 +418,7 @@ public function removeIf($boolOrCallable): self return $this->removeWhen($boolOrCallable); } - public function carbon(?Carbon $carbon): self + public function carbon(?CarbonInterface $carbon): self { $payload = new CarbonPayload($carbon);