Skip to content

Commit

Permalink
Align carbon call argument type with carbon payload.
Browse files Browse the repository at this point in the history
  • Loading branch information
abenerd committed Sep 9, 2021
1 parent a189f18 commit 84d33fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ray.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Spatie\Ray;

use Carbon\Carbon;
use Carbon\CarbonInterface;
use Closure;
use Composer\InstalledVersions;
use Exception;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 84d33fb

Please sign in to comment.