PHP 8.* – Deprecated Functionality: explode(): Passing null to parameter #2 ($string)
If you are facing an issue like that ”, which is mostly being shown when you move code from PHP 7.4 to 8.*. I would say that the best approach to get that fixed is replacing the following line of code:
1 |
$this->getConfigGeneral('send_to') |
to something like this:
1 2 |
$conf = $this->getConfigGeneral('send_to') ?:''; $sendTo = explode(',', $conf); |
Hope this helps.
Enjoy.