Closed tgerulaitis closed 6 years ago
These changes look good.
Do we need to worry about other uses of serialize:
https://github.com/meanbee/magento2-serviceworker/blob/fdfbcdda9dec498ff448d4e2c06eb7b441de39a6/src/Setup/InstallData.php#L77 https://github.com/meanbee/magento2-serviceworker/blob/fdfbcdda9dec498ff448d4e2c06eb7b441de39a6/src/Setup/UpgradeData.php#L66 https://github.com/meanbee/magento2-serviceworker/blob/fdfbcdda9dec498ff448d4e2c06eb7b441de39a6/src/Setup/UpgradeData.php#L90
@bobbyshaw good catch on the UpgradeData
, I missed that one. The InstallData
usage is already in the PR though as far as I can see.
Ah yes, just UpgradeData
. I thought the search would search the codebase at the commit of this PR but obviously, that's not true.
@bobbyshaw updated.
This matches serialization done by the \Magento\Config\Model\Config\Backend\Serialized\ArraySerialized class when saving the custom strategies in the admin area in Magento 2.2.
Fixes #9.