Problem/Motivation

Php7.4 is not supporting curly braces for Array or string offset and gives error as depicted below

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/docroot/sites/all/modules/contrib/apachesolr_multilingual/apachesolr_multilingual.module on line 366

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/docroot/sites/all/modules/contrib/apachesolr_multilingual/apachesolr_multilingual.install on line 57

Proposed resolution

Curly braces can be updated with square brackets. Proposing the attached patch to update the module version 7.x-1.3

Comments

suvasish.manna created an issue. See original summary.

suvasish.manna’s picture

fadonascimento’s picture

I have been tested and worked as expected under php7.4

fadonascimento’s picture

Status: Needs review » Reviewed & tested by the community
rajatc’s picture

Patch #2 works for me and fixed the PHP 7.4 compatibility warnings.