Having recently updated to PHP7.4 we are getting the following warning on all pages "Deprecated: Array and string offset access syntax with curly braces is deprecated in /code/sites/all/modules/contrib/user_import/user_import.import.inc on line 286 Deprecated: Array and string offset access syntax with curly braces is deprecated in /code/sites/all/modules/contrib/user_import/user_import.import.inc on line 292".

CommentFileSizeAuthor
#2 remove-curly-braces-3183173-2.patch533 bytesdippers

Comments

Dippers created an issue. See original summary.

dippers’s picture

StatusFileSize
new533 bytes

Patch attached.

damienmckenna’s picture

Version: 7.x-3.2 » 7.x-3.x-dev
Status: Active » Needs review
Issue tags: -php7.4 +PHP 7.4

Correcting the tag, and updating the status to "Needs review" as there's a patch to review.

damienmckenna’s picture

Status: Needs review » Reviewed & tested by the community

This worked for me on a site I maintain. Thank you.

awasson’s picture

Ran into this issue this afternoon myself.
This patch is good to go.

meyerrob’s picture

Works for my site as well.