Skip to content

Commit

Permalink
Implicit nullable types for PHP 8.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlavtox authored Nov 26, 2024
1 parent dd926c8 commit c0a2683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MailAlert.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static function deleteAlert($id_customer, $customer_email, $id_product, $
/*
* Get objects that will be viewed on "My alerts" page
*/
public static function getMailAlerts($id_customer, $id_lang, Shop $shop = null)
public static function getMailAlerts($id_customer, $id_lang, ?Shop $shop = null)
{
if (!Validate::isUnsignedId($id_customer) || !Validate::isUnsignedId($id_lang)) {
exit(Tools::displayError());
Expand Down

0 comments on commit c0a2683

Please sign in to comment.