Skip to content

Commit

Permalink
Merge pull request #379 from oxconan/thcao/fix_each_function
Browse files Browse the repository at this point in the history
fix: deprecated each() function
  • Loading branch information
effgarces authored Jul 9, 2024
2 parents 50b375f + 52d62a1 commit 6d2b6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/external/pear/PEAR.php
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ function _PEAR_call_destructors()
$_PEAR_destructor_object_list = array_reverse($_PEAR_destructor_object_list);
}

while (list($k, $objref) = each($_PEAR_destructor_object_list)) {
foreach ($_PEAR_destructor_object_list as $k => $objref) {
$classname = get_class($objref);
while ($classname) {
$destructor = "_$classname";
Expand Down

0 comments on commit 6d2b6f4

Please sign in to comment.