Skip to content

Commit 9580f54

Browse files
authored
Merge pull request #24 from jtojnar/php72
Fix compatibility with PHP 7.2
2 parents d0dfbb4 + 69b9a41 commit 9580f54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CssMin.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2243,8 +2243,9 @@ public static function initialise()
22432243
{
22442244
// Create the class index for autoloading or including
22452245
$paths = array(dirname(__FILE__));
2246-
while (list($i, $path) = each($paths))
2246+
for ($i = 0; $i < count($paths); $i++)
22472247
{
2248+
$path = $paths[$i];
22482249
$subDirectorys = glob($path . "*", GLOB_MARK | GLOB_ONLYDIR | GLOB_NOSORT);
22492250
if (is_array($subDirectorys))
22502251
{

0 commit comments

Comments
 (0)