diff --git a/Model/Carrier/BobGo.php b/Model/Carrier/BobGo.php index 938e847d2201d64d520af022f72b8ed98a98a8ea..12e46e69ab6fe302edc536fd7bf791d7ecf49fea 100644 --- a/Model/Carrier/BobGo.php +++ b/Model/Carrier/BobGo.php @@ -535,7 +535,7 @@ class BobGo extends AbstractCarrierOnline implements \Magento\Shipping\Model\Car public function getAllowedMethods(): array { $allowedMethods = $this->getConfigData('allowed_methods'); - if ($allowedMethods === false || $allowedMethods === null || trim($allowedMethods) === '') { + if (empty($allowedMethods)) { return []; // Return an empty array if no allowed methods are configured }