The following errors appear on the top of my site:
================================
Deprecated: Array and string offset access syntax with curly braces is deprecated in /.../modules/name/src/NameFormatParser.php on line 127
Deprecated: Array and string offset access syntax with curly braces is deprecated in /.../modules/name/src/NameFormatParser.php on line 128
Deprecated: Array and string offset access syntax with curly braces is deprecated in /.../modules/name/src/NameFormatParser.php on line 289
Deprecated: Array and string offset access syntax with curly braces is deprecated in /.../modules/name/src/NameFormatParser.php on line 347
Comment | File | Size | Author |
---|---|---|---|
#7 | php-deprecated-curly-braces-3125621-7.patch | 1.63 KB | ahebrank |
#3 | php-deprecated-curly-braces-3125621-3.patch | 1.07 KB | jaydub |
|
Comments
Comment #2
jaydub CreditAttribution: jaydub commentedNote that this deprecation method is for PHP 7.4+. Since Drupal 8 still supports earlier versions of PHP 7 I don't think this is a bug report per se but more of a general cleanup task.
Comment #3
jaydub CreditAttribution: jaydub as a volunteer commentedHere's a quick and dirty patch.
Comment #5
nkoporecThanks for the patch, I have manually review it and it fixes the deprecation warnings when using PHP 7.4.
Comment #6
nkoporecComment #7
ahebrank CreditAttribution: ahebrank commentedThis already is fixed in dev, but here's an updated patch for the stable release that also fixes errors in NameAutocomplete.
Deprecated: Array and string offset access syntax with curly braces is deprecated in /app/web/modules/contrib/name/src/NameAutocomplete.php on line 120
Deprecated: Array and string offset access syntax with curly braces is deprecated in /app/web/modules/contrib/name/src/NameAutocomplete.php on line 121