Skip to content

Commit

Permalink
Fixed FeedItem update() use with CarbonImmutable date (#178)
Browse files Browse the repository at this point in the history
Co-authored-by: Arthur LORENT <arthur@acid.fr>
  • Loading branch information
Okipa and Arthur LORENT authored Oct 14, 2021
1 parent 7adb029 commit e911a11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FeedItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Spatie\Feed;

use Carbon\Carbon;
use Carbon\CarbonInterface;
use Exception;
use Spatie\Feed\Exceptions\InvalidFeedItem;

Expand All @@ -14,7 +14,7 @@ class FeedItem

protected string $title;

protected Carbon $updated;
protected CarbonInterface $updated;

protected string $summary;

Expand Down Expand Up @@ -66,7 +66,7 @@ public function title(string $title): self
return $this;
}

public function updated(Carbon $updated): self
public function updated(CarbonInterface $updated): self
{
$this->updated = $updated;

Expand Down

0 comments on commit e911a11

Please sign in to comment.