Skip to content

Commit 3f1debe

Browse files
committed
Fix nullable parameter, DEV-1134
1 parent 2309774 commit 3f1debe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugin/OfflinePayments/Model/Purchaseorder/AddCustomerGroupCheckPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(Config $config)
2323
/**
2424
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
2525
*/
26-
public function afterIsAvailable(Purchaseorder $subject, bool $result, CartInterface $quote = null): bool
26+
public function afterIsAvailable(Purchaseorder $subject, bool $result, ?CartInterface $quote = null): bool
2727
{
2828
// if some other rule forbids this payment method, we forbid it as well
2929
if (!$result) {

0 commit comments

Comments
 (0)