Problem with Weathermap temperature map, when manually running it generates the message "PHP Deprecated: The each() function is deprecated."

Message

librenms@srv-nms-01:/opt/librenms$ su -l librenms -c /opt/librenms/html/plugins/Weathermap/map-poller.php
Senha:
PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /opt/librenms/html/plugins/Weathermap/lib/Weathermap.class.php on line 778
libpng warning: iCCP: known incorrect sRGB profile
PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /opt/librenms/html/plugins/Weathermap/lib/Weathermap.class.php on line 778
PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /opt/librenms/html/plugins/Weathermap/lib/Weathermap.class.php on line 778
libpng warning: iCCP: known incorrect sRGB profile

If anyone can help I appreciate it.