Skip to content

Commit b7f4ddb

Browse files
authored
Merge pull request #306 from nangui/fix/php84-implicit-nullable-deprecation
fix: PHP 8.4 deprecation - use explicit nullable type in downloadInvoice()
2 parents 2e101d9 + 424b99d commit b7f4ddb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Billable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public function invoices()
423423
* @param \Dompdf\Options $options
424424
* @return \Symfony\Component\HttpFoundation\Response
425425
*/
426-
public function downloadInvoice($orderId, $data = [], $view = Invoice::DEFAULT_VIEW, Options $options = null)
426+
public function downloadInvoice($orderId, $data = [], $view = Invoice::DEFAULT_VIEW, ?Options $options = null)
427427
{
428428
/** @var Order $order */
429429
$order = $this->orders()->where('id', $orderId)->firstOrFail();

0 commit comments

Comments
 (0)