Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/Managers/DiscountManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Lunar\Base\Validation\CouponValidator;
use Lunar\DiscountTypes\AmountOff;
use Lunar\DiscountTypes\BuyXGetY;
use Lunar\Models\Cart;
use Lunar\Models\Channel;
use Lunar\Models\Contracts\Cart as CartContract;
use Lunar\Models\Contracts\Channel as ChannelContract;
Expand Down Expand Up @@ -119,7 +118,7 @@ public function getChannels(): Collection
/**
* Returns the available discounts.
*/
public function getDiscounts(?Cart $cart = null): Collection
public function getDiscounts(?CartContract $cart = null): Collection
{
if ($this->channels->isEmpty() && $defaultChannel = Channel::getDefault()) {
$this->channel($defaultChannel);
Expand Down
Loading