Deprecated Functionality: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /data/web/x/vendor/stamped-io/core/Model/ConfigProvider.php on line 144
This is because no 'Order status to trigger Rewards' value has been filled in Stores > configuration, however this should not thrown an error. This is solvable by changing `Model/ConfigProvider.php':
public function getOrderStatuses($storeId = null)
{
return array_filter(explode(
',',
$this->scopeConfig->getValue(
self::STAMPED_CORE_ORDER_STATUS,
ScopeInterface::SCOPE_STORE,
$storeId
)
));
}
to
public function getOrderStatuses($storeId = null)
{
return array_filter(explode(
',',
$this->scopeConfig->getValue(
self::STAMPED_CORE_ORDER_STATUS,
ScopeInterface::SCOPE_STORE,
$storeId
) ?: ''
));
}
We're getting the following error:
This is because no 'Order status to trigger Rewards' value has been filled in Stores > configuration, however this should not thrown an error. This is solvable by changing `Model/ConfigProvider.php':
to
I can create a pull request if you want.