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

Created on 5 November 2022, over 2 years ago
Updated 10 March 2023, almost 2 years ago

Problem/Motivation

The motivation is to make XAutoload compatible with PHP 8.1. I am led to believe it isn't due to the following error:

W: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /app/public/profiles/blimp_profile/modules/contrib/xautoload/src/Util.php on line 127
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /app/public/profiles/blimp_profile/modules/contrib/xautoload/src/Util.php on line 127
W: Drush command terminated abnormally due to an unrecoverable error. [error]
W: Error: Array and string offset access syntax with curly braces is no
W: longer supported in
W: /app/public/profiles/blimp_profile/modules/contrib/xautoload/src/Util.php,
W: line 127

Steps to reproduce

Run a Drupal 7 website with XAutoload 7.x-5.8 with PHP version 8.1.

Proposed resolution

Update codebase to use syntax friendly to PHP 8.1.

Remaining tasks

Update codebase, testing.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ“Œ Task
Status

Closed: works as designed

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States hayleemillar

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

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