According to php:
This function has been DEPRECATED as of PHP 7.2.0. Relying on this
function is highly discouraged.
http://php.net/manual/en/function.each.php
As I recall I also have a "legacy" script with each. Rather than modifying it I just turned off depreciated error warnings (for now).
index.php
switch (ENVIRONMENT) {
case 'development':
error_reporting(~E_DEPRECATED);
ini_set('display_errors', 1);
break;
case 'testing':
case 'production':
ini_set('display_errors', 0);
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
break;
default:
header('HTTP/1.1 503 Service Unavailable.', TRUE, 503);
echo 'The application environment is not set correctly.';
exit(1);
}
You could update the library as I believe it is still in development or if that isn't the case you can also modify the code replacing each with a proper foreach loop where required:
How to resolve this deprecated function each php