PHP8 compatibility

Created on 14 September 2023, over 1 year ago
Updated 16 November 2023, over 1 year ago

Problem/Motivation

Array and string offset access syntax with curly braces is no longer supported

Proposed resolution

Change {0} to [0]

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇭🇺Hungary danyg Budapest

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

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

Sign in to follow issues

Comments & Activities

  • Issue created by @danyg
  • 🇭🇺Hungary danyg Budapest

    patch attached.

  • 🇭🇺Hungary danyg Budapest

    I made a minor upgrade since I found another deprecation:
    Deprecated: Optional parameter $prefix declared before required parameter $form_values is implicitly treated as a required parameter in /app/docroot/sites/all/modules/contrib/import_html/import_html_ui.inc on line 1715
    After a little examination, I realized that $prefix doesn't need initial value among parameters, so I removed.

Production build 0.71.5 2024