Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

each() is deprecated as of PHP 7.2.0 #81

Open
MHimken opened this issue Jul 14, 2020 · 0 comments
Open

each() is deprecated as of PHP 7.2.0 #81

MHimken opened this issue Jul 14, 2020 · 0 comments

Comments

@MHimken
Copy link

MHimken commented Jul 14, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant