I get a PHP 7.4. deprecation warning

PHP Deprecated: Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 7.4. Found: $link{$x} .../sites/all/modules/contrib/bbcode/bbcode-filter.inc on line 384

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

CommentFileSizeAuthor
#3 3224231-PHP7.4-compatibility-fix.patch2.16 KBkavbiswa

Comments

kavbiswa created an issue. See original summary.

kavbiswa’s picture

Title: Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 8.0 » Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 7.4
kavbiswa’s picture

StatusFileSize
new2.16 KB

This patch fixes the issue.

kavbiswa’s picture

Status: Active » Needs review
kavbiswa’s picture

Assigned: kavbiswa » Unassigned
erwangel’s picture

#3 worked for me

richard.lampitt’s picture

The provided works correctly on PHP 8.1+.

richard.lampitt’s picture

Status: Needs review » Reviewed & tested by the community
richard.lampitt’s picture

Version: 7.x-2.0 » 7.x-3.0

As this issue has been open for a while, and myself and others have tested and confirmed that this is working, I'm going to mark this as reviewed and tested now.

naudefj’s picture

Status: Reviewed & tested by the community » Fixed

Patch applied and included in release Bbcode 7.x-4.0.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.