Skip to content

Commit

Permalink
Merge pull request #556 from abenerd/feature/align-carbon-argument-type
Browse files Browse the repository at this point in the history
Align carbon call argument type with carbon payload.
  • Loading branch information
freekmurze authored Sep 10, 2021
2 parents a189f18 + 84d33fb commit 56e4719
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 56e4719

Please sign in to comment.