Remove usage of deprecrated each() function for PHP 7.2+ future proofing

Created on 31 January 2019, almost 6 years ago
Updated 9 July 2024, 5 months ago

The each() function is deprecated as of PHP 7.2.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΆπŸ‡¦Qatar teknikqa Doha

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.

  • πŸ‡¨πŸ‡¦Canada Gib...

    After upgrade to 7.x-2.8 and PHP 8.0, I tried the dev version. Errors on the each() function.
    I manually uploaded the i18n_book_navigation.module to the server and all is fine.
    It took me a few hours to figure this out.

  • Status changed to Needs work 5 months ago
  • πŸ‡¨πŸ‡¦Canada circuscowboy

    Patch on #4 is not working for me on php 8.2

    I will attach a new patch that is working.

  • Status changed to Needs review 5 months ago
  • πŸ‡¨πŸ‡¦Canada circuscowboy

    Here is a patch the works for me on php 8.2

Production build 0.71.5 2024