Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/Billable.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,10 @@ public function invoices()
* @param $orderId
* @param null|array $data
* @param string $view
* @param \Dompdf\Options $options
* @param \Dompdf\Options|null $options
* @return \Symfony\Component\HttpFoundation\Response
*/
public function downloadInvoice($orderId, $data = [], $view = Invoice::DEFAULT_VIEW, Options $options = null)
public function downloadInvoice($orderId, $data = [], $view = Invoice::DEFAULT_VIEW, ?Options $options = null)
{
/** @var Order $order */
$order = $this->orders()->where('id', $orderId)->firstOrFail();
Expand Down
4 changes: 2 additions & 2 deletions src/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,10 @@ public function scheduled_order_item()
* @param Carbon|null $process_at
* @param array $item_overrides
* @param bool $fill_link Indicates whether scheduled_order_item_id field should be filled to point to the newly scheduled order item
* @param \Laravel\Cashier\Plan\Contracts\Plan $plan
* @param \Laravel\Cashier\Plan\Contracts\Plan|null $plan
* @return \Illuminate\Database\Eloquent\Model|\Laravel\Cashier\Order\OrderItem
*/
public function scheduleNewOrderItemAt(Carbon $process_at, $item_overrides = [], $fill_link = true, Plan $plan = null)
public function scheduleNewOrderItemAt(Carbon $process_at, $item_overrides = [], $fill_link = true, ?Plan $plan = null)
{
if ($this->scheduled_order_item_id) {
throw new LogicException('Cannot schedule a new subscription order item if there is already one scheduled.');
Expand Down