Array and string offset access syntax with curly braces is deprecated in PHP 7.4. Use square brackets instead. Seen for $path {(strlen($path) - 1)}

Created on 14 January 2021, almost 4 years ago
Updated 26 January 2023, almost 2 years ago

Problem/Motivation

I catched a PHP7.4 notice deprecation

Array and string offset access syntax with curly braces is deprecated in PHP 7.4. Use square brackets instead. Seen for $path {(strlen($path) - 1)} 
../pdf_using_mpdf/pdf_using_mpdf.module 428

See https://wiki.php.net/rfc/deprecate_curly_braces_array_access

Steps to reproduce

Switch to php7.4, check logs

Proposed resolution

I would suggest to apply a patch

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇧🇾Belarus Andrei Haurukovich Minsk

Live updates comments and jobs are added and updated live.
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.

  • First commit to issue fork.
Production build 0.71.5 2024