Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove zend json from migration #10341

Merged

Conversation

dmanners
Copy link
Contributor

@dmanners dmanners commented Jul 26, 2017

Description

Remove the Zend_Json call from the Setup/Migration.php …

  • inject the new \Magento\Framework\Serialize\Serializer\Json class,
  • update _jsonDecode method parameter default from Zend_Json constant,
  • update _jsonDecode to call the new Serializer method version

Fixed Issues (if relevant)

  1. Upgrade ZF components. Zend_Json #9236: Upgrade ZF components. Zend_Json

Manual testing scenarios

  1. ...
  2. ...

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

 - inject the new \Magento\Framework\Serialize\Serializer\Json class,
 - update _jsonDecode method parameter default from Zend_Json constant,
 - update _jsonDecode to call the new Serializer method version
@@ -694,10 +704,12 @@ public function getCompositeModules()
*
* @param string $encodedValue
* @param int $objectDecodeType
* @return mixed
* @return array|bool|float|int|mixed|null|string
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again not happy that the return and the throws have changed been added but not really sure if this is ok/if there is a better option in this case.

Copy link
Contributor

@ishakhsuvarov ishakhsuvarov Jul 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume same return type as SerializerInterface suggests may be used
Since it's Json implementation currently has inheritdoc.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will take care about this on our side.

@okorshenko okorshenko self-assigned this Jul 26, 2017
@okorshenko okorshenko added this to the July 2017 milestone Jul 26, 2017
@magento-team magento-team merged commit 056f554 into magento:develop Jul 27, 2017
magento-team pushed a commit that referenced this pull request Jul 27, 2017
@dmanners dmanners deleted the remove-zend-json-from-migration branch July 28, 2017 07:00
magento-team pushed a commit that referenced this pull request Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants