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

Iterator cannot be used with foreach by reference #1773

Closed
wants to merge 1 commit into from
Closed

Iterator cannot be used with foreach by reference #1773

wants to merge 1 commit into from

Conversation

netorica
Copy link

@netorica netorica commented Sep 1, 2015

at line 28, I remove the reference that is used inside the foreach.

First and foremost this works with PHP 5.5+ but breaks on HHVM as part of the list of inconsistencies in PHP 5

https://github.com/facebook/hhvm/blob/master/hphp/doc/inconsistencies#L37-L43

I know the for the meantime Magento2 doesn't support yet HHVM but I think removing this reference on foreach will make this code compatible on future releases of PHP

at line 28,  I remove the reference that is used inside the `foreach`. 

First and foremost this works with PHP 5.5+ but breaks on HHVM as part of the list of inconsistencies in PHP 5

https://github.com/facebook/hhvm/blob/master/hphp/doc/inconsistencies#L37-L43

I know the for the meantime Magento2 doesn't support yet HHVM but I think removing this reference on `foreach` will make this code compatible on future releases of PHP
@netorica
Copy link
Author

netorica commented Sep 1, 2015

duplicate of #1739 closing this pull request now

@netorica netorica closed this Sep 1, 2015
okorshenko pushed a commit that referenced this pull request Nov 28, 2017
Public Pull Requests

#12328 9742: Default welcome message returns after being deleted #9742 by @RomaKis
#12253 New validation: 3bytes characters filter (4 bytes characters cannot be stored using UTF8) by @KarlDeux
#12133 Fix for issue 12127: Single quotation marks are now decoded properly in admin attribute option input fields by @erfanimani
#11389 Attribute category_ids issue by @manuelson

Fixed Public Issues

#9742 Default welcome message returns after being deleted
#12058 Can't save emoji in custom product options
#12127 Apostrophe in attribute option value in admin is not handled properly
#11341 Attribute category_ids issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants