PHP 7.2 deprecated the each() function. One suggested replacement is a simple foreach(), but it cannot be done blindly. Unfortunately, the initial removal of the each() function was a blind foreach() replacement.
Two broken replacements were fixed previously (Thank you @adamjimenez!). I examined each remaining foreach() replacement and I have concluded that they are all fine and can remain as they are.
PHP 7.2 deprecated the
each()
function. One suggested replacement is a simpleforeach()
, but it cannot be done blindly. Unfortunately, the initial removal of theeach()
function was a blindforeach()
replacement.