Skip to content

Commit 2d97061

Browse files
committed
Remove deprecated each() function from test examples
1 parent 0b44f1c commit 2d97061

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ $var2 = 12;
183183

184184
// Valid
185185
$error = false;
186-
while (list($h, $f) = each($handle)) {
186+
while (list($h, $f) = getKeyAndValue($handle)) {
187187
$error = true;
188188
}
189189

src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ $var2 = 12;
183183

184184
// Valid
185185
$error = false;
186-
while (list($h, $f) = each($handle)) {
186+
while (list($h, $f) = getKeyAndValue($handle)) {
187187
$error = true;
188188
}
189189

0 commit comments

Comments
 (0)