alzen8work / CodeIgniter-HMVC

CodeIgniter 3.1.10 with HMVC
MIT License
45 stars 55 forks source link

each deprecated in Modules Line 83 #4

Open mercomtw opened 5 years ago

mercomtw commented 5 years ago

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 commented 5 years ago

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

alzen8work commented 5 years ago

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

andrejuseu commented 5 years ago

@alzen8work

https://github.com/alzen8work/CodeIgniter-HMVC/blob/803c6d925d70c3f88cf8d139ccf1424333fd3929/application/third_party/MX/Modules.php#L83