Thanks to visit codestin.com
Credit goes to github.com

Skip to content

each() is deprecated as of PHP 7.2.0 #81

@MHimken

Description

@MHimken

while (list($i, $path) = each($paths))

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions