Open MHimken opened 4 years ago
https://github.com/arbk/cssmin/blob/9a6935043517bd0f04e6e1c580c96b10767e4227/libs/CssMin.php#L2223 Changing this line from each() to foreach() Old line while (list($i, $path) = each($paths)) New line foreach ($paths as $i=>$path) This method is also a lot faster. See https://www.php.net/manual/en/function.each.php
while (list($i, $path) = each($paths))
foreach ($paths as $i=>$path)
https://github.com/arbk/cssmin/blob/9a6935043517bd0f04e6e1c580c96b10767e4227/libs/CssMin.php#L2223 Changing this line from each() to foreach() Old line
while (list($i, $path) = each($paths))
New lineforeach ($paths as $i=>$path)
This method is also a lot faster. See https://www.php.net/manual/en/function.each.php