Skip to content

Commit cd2c970

Browse files
author
Oleksii Korshenko
committed
MAGETWO-71061: Remove zend json from migration #10341
1 parent 98a5d2d commit cd2c970

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/internal/Magento/Framework/Module/Setup/Migration.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,23 @@ public function getCompositeModules()
707707
* @return array|bool|float|int|mixed|null|string
708708
* @throws \InvalidArgumentException
709709
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
710+
* @deprecated
711+
* @see \Magento\Framework\Module\Setup\Migration::jsonDecode
710712
*/
711713
protected function _jsonDecode($encodedValue, $objectDecodeType = 1)
714+
{
715+
return $this->jsonDecode($encodedValue);
716+
}
717+
718+
/**
719+
* Decodes the given $encodedValue string which is
720+
* encoded in the JSON format
721+
*
722+
* @param string $encodedValue
723+
* @return array|bool|float|int|mixed|null|string
724+
* @throws \InvalidArgumentException
725+
*/
726+
private function jsonDecode($encodedValue)
712727
{
713728
return $this->serializer->unserialize($encodedValue);
714729
}

0 commit comments

Comments
 (0)