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 deprecated in Modules Line 83 #4

Open
mercomtw opened this issue Dec 17, 2018 · 3 comments
Open

each deprecated in Modules Line 83 #4

mercomtw opened this issue Dec 17, 2018 · 3 comments

Comments

@mercomtw
Copy link

Hello,
after Update to PHP 7.2 I become this Message.
Line 83: (is_array($module)) ? list($module, $params) = each($module) : $params = NULL;
How can I resolve this Problem?

@mercomtw
Copy link
Author

Ok, after study the PHP-Manual i solved it.
(is_array($module)) ? list($module, $params) = [key($module), current($module)] : $params = NULL;

@alzen8work
Copy link
Owner

may i know which line in specific, sorry for the delay

@andrejuseu
Copy link

@alzen8work

(is_array($module)) ? list($module, $params) = each($module) : $params = NULL;

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

3 participants