diff --git a/src/Billable.php b/src/Billable.php index 0db1279..24e7a14 100644 --- a/src/Billable.php +++ b/src/Billable.php @@ -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(); diff --git a/src/Subscription.php b/src/Subscription.php index 0f5197d..42933bd 100644 --- a/src/Subscription.php +++ b/src/Subscription.php @@ -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.');