PHP 7.4 compatibility

Created on 9 December 2019, almost 5 years ago
Updated 27 February 2024, 9 months ago

I am scanning site modules for PHP 7 compatibility, and came across this report for this module.

FILE: ...ices/drupal/public/sites/all/modules/contrib/rate/rate.admin.inc
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
----------------------------------------------------------------------
 862 | WARNING | [x] Curly brace syntax for accessing array elements
     |         |     and string offsets has been deprecated in PHP
     |         |     7.4. Found: $data->data{0}
 862 | WARNING | [x] Curly brace syntax for accessing array elements
     |         |     and string offsets has been deprecated in PHP
     |         |     7.4. Found: $data->data{0}
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

This was against the 1.6 version, but still seems to be an issue in the 1.x branch.

πŸ“Œ Task
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bburg Washington D.C.

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024