Deprecation warning about each() on PHP 7.2 & 7.3

Created on 30 March 2018, over 6 years ago
Updated 12 January 2024, 11 months ago

each() is deprecated in PHP 7.2. The PHP website says:

This function is far slower at iteration than a normal foreach, and causes implementation issues for some language changes. It has therefore been deprecated.

Websites generate errors like these:

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in _location_autocomplete() (line 1118 of /sites/all/modules/location/location.module).

๐Ÿ› Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States jacob.embree

Live updates comments and jobs are added and updated live.
  • PHP 7.2

    The issue particularly affects sites running on PHP version 7.2.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024