Replace "each" function usage with equivalent code
Components
Labels
Description
Context Information
None
Additional information (do not use)
None
Activity
Show:

[API] Administrator August 31, 2021 at 9:24 AM
User @Alex committed a fix to 5.2.x. Commit Message:
Fixes https://in-portal.atlassian.net/browse/INP-1757#icft=INP-1757 - Replace "each" function usage with equivalent code
Differential Revision: http://qa.in-portal.org/D411

Dmitry Andrejev August 26, 2021 at 11:03 PM
@Erik S. looks like more work is needed. Review and implement.

Erik S. June 21, 2021 at 5:19 PM
Test plan needed.

Dmitry Andrejev June 21, 2021 at 2:53 AM
@Erik S. please find and replace all 44 places in CORE.
Fixed
Details
Details
Priority
Assignee

Reporter

Developer

Reviewer

Change Log Group
Fixed
Change Log Message
Fixed notice on PHP 7.2
Patch Instructions
Patches must be submitted through Phabricator.
To submit patch via Command Line use Patches Workflow (via Arcanist) tutorial.
To submit patch via Web Interface use Patches Workflow (via Web Interface) tutorial.
Time tracking
1d 7h logged
Story Points
1
Fix versions
Created November 28, 2018 at 8:11 AM
Updated December 30, 2024 at 1:44 AM
Resolved August 31, 2021 at 9:24 AM
Replace 44 usages of "each" function like:
list($id, $field_values) = each($items_info);
with
$id = key($items_info);
$field_values = $items_info[$id];
If only
$field_values
is needed, then use$field_values = current($items_info);
.