Replaced most each() calls with foreach() in preparation to support php 8

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2022-01-19 15:40:42 +01:00
parent 7aec4647a5
commit 7a66346036
22 changed files with 47 additions and 45 deletions

View File

@ -410,7 +410,7 @@ class Zend_Mail_Protocol_Imap
$a = $this->requestAndResponse("LIST", array('""', '"*"'));
while(list($k, $v) = each($a)) {
foreach ($a as $k => $v) {
if($v[1][0] == '\HasNoChildren') {
array_push($folders, $v[3]);
}