Skip to content

Commit ca51be1

Browse files
use strpos instead of str_contains for php 7 compatibility
1 parent 76e97ce commit ca51be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Service/MethodService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,6 @@ private function createCmOrder(CartInterface $quote): OrderCreate
204204
*/
205205
private function isCmPaymentsMethod(string $paymentMethodCode): bool
206206
{
207-
return str_contains($paymentMethodCode, ConfigProvider::CODE . '_');
207+
return strpos($paymentMethodCode, ConfigProvider::CODE . '_') !== false;
208208
}
209209
}

0 commit comments

Comments
 (0)