Skip to content

Add Sniff for check autovivification on array #322

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

Conversation

anzin
Copy link
Contributor

@anzin anzin commented Nov 2, 2021

Description (*)

Added sniff for check autovivification on array.

Addresses backward incompatible change in PHP 8.1: https://wiki.php.net/rfc/autovivification_false

Fixed Issues (if relevant)

  1. Add new sniff Magento2.PHP.ArrayAutovivification into magento-coding-standard magento2#34509

Contribution checklist (*)

  • Author has signed the Adobe CLA
  • 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 are green)

andrewbess
andrewbess previously approved these changes Nov 2, 2021
@sivaschenko
Copy link
Member

Thank you for the valuable contribution @anzin ! Can you please add the unit test for this sniff. Having the test code will make it much easier to review the PR.

loginesta
loginesta previously approved these changes Nov 2, 2021
@anzin anzin dismissed stale reviews from loginesta and andrewbess via 437e157 November 2, 2021 19:37
@anzin anzin requested review from loginesta and andrewbess November 2, 2021 19:42
@sivaschenko
Copy link
Member

@magento import pr to magento-commerce/magento-coding-standard

@m2-github-services
Copy link
Contributor

@sivaschenko an error occurred during the Pull Request import.

@svera
Copy link
Contributor

svera commented Nov 3, 2021

@magento import pr to magento-commerce/magento-coding-standard

@m2-github-services
Copy link
Contributor

@svera an error occurred during the Pull Request import.

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.

9 participants