Remove usages of 'each', as it is deprecated in php 7.2
[plcapi.git] / tests / 3LocalhostTest.php
index 0290dbf..118f10b 100644 (file)
@@ -411,7 +411,7 @@ And turned it into nylon';
             $got = '';
             $expected = '37210';
             $expect_array = array('ctLeftAngleBrackets', 'ctRightAngleBrackets', 'ctAmpersands', 'ctApostrophes', 'ctQuotes');
-            while (list(, $val) = each($expect_array)) {
+            foreach($expect_array as $val) {
                 $b = $v->structmem($val);
                 $got .= $b->me['int'];
             }