Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-16277

Move from each() function

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.3.0
    • 4.0.0-a1, 3.3.0-RC1
    • Other
    • None

      As each() function has been deprecated as of PHP 7.2, it should be replaced in the codebase using another ways (foreach()/key()/current()).

      Also, each() has been removed in PHP 8.0 https://github.com/php/php-src/blob/master/UPGRADING#L39

      https://www.php.net/manual/en/function.each.php

            Marc Marc
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: