Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0.

Created on 25 November 2020, almost 4 years ago
Updated 13 September 2024, 2 months ago

Problem/Motivation

Several issues related to "Indirect access to variables, properties and methods" get flagged by PHPCompatibility.

Steps to reproduce

phpcs --standard=PHPCompatibility --runtime-set testVersion 7.3 sites/all/themes/bootstrap/includes/theme.inc

File themes/bootstrap/includes/theme.inc

------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
143 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in
| | left-to-right order since PHP 7.0. Use curly braces to remove ambiguity.
------------------------------------------------------------------------------------------------------

πŸ› Bug report
Status

Closed: won't fix

Version

2.2

Component

Code

Created by

πŸ‡ΈπŸ‡ͺSweden dennismathenge

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

    The issue particularly affects sites running on PHP version 7.3.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