Skip to content

Commit

Permalink
fix issue where method code is 'null' and the check strpos() gives a …
Browse files Browse the repository at this point in the history
…deprecation warning.

see issue: postnl#385
  • Loading branch information
rbouma2 committed Aug 5, 2024
1 parent 73c80dd commit 4b08e04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Plugin/Shipment/ShippingBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function afterCreate(
if ($shipping) {
$method = $shipping->getMethod();
if ($this->orderId &&
is_string($method) &&
strpos($method, 'tig_postnl') !== false &&
$extensionAttributes = $shipping->getExtensionAttributes()
) {
Expand Down

0 comments on commit 4b08e04

Please sign in to comment.