myparcelnl / magento

The Magento 2 MyParcel plugin
https://developer.myparcel.nl/nl/documentatie/13.magento2.html
MIT License
19 stars 27 forks source link

explode(): Passing null to parameter #2 ($string) of type string is deprecated #724

Open onepack opened 2 years ago

onepack commented 2 years ago

Plugin version

4.7.0

Magento version

2.4.4-p2

PHP version

8.1

What went wrong?

Not able to create a order via the backend of magento

Reproduction steps

  1. Navigate to orders
  2. Click on create new order
  3. See this error (see above)

Relevant log output

Functionality: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/admin/domains/domain.com/public_html/vendor/myparcelnl/magento/Model/Rate/Result.php on line 84

Additional context

No response

onepack commented 2 years ago

Fixed it by adjusting all explode functions like this one: $this->parentMethods = explode(',', $this->myParcelHelper->getGeneralConfig('shipping_methods/methods') ?? '');

MyParcelBot commented 1 year ago

:tada: This issue has been resolved in version 4.8.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: