I get a PHP 7.4. deprecation warning

PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in .../sites/all/modules/contrib/date/date.migrate.inc on line 115

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

CommentFileSizeAuthor
#2 date-php74-3145639-2.patch588 bytesronino

Comments

Ronino created an issue. See original summary.

ronino’s picture

Status: Active » Needs review
StatusFileSize
new588 bytes

This patch fixes the issue.

damienmckenna’s picture

Nice catch, thank you. Did you find any other instances of this syntax?

ronino’s picture

No. I checked the whole module for {.*} and [a-z]\{ and didn't find any other instances.

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

I did a check too and that is all I could find.

  • DamienMcKenna committed dbde2f2 on 7.x-2.x authored by Ronino
    Issue #3145639 by Ronino, joelpittet: Curly brace syntax for accessing...
damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thank you.

Status: Fixed » Closed (fixed)

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