PhpCS php7 compatibility warning

Created on 25 November 2020, about 4 years ago
Updated 16 January 2023, almost 2 years ago

Problem/Motivation

Need to have a compatible module for PHP 7.3 releases
PHPCS reports 1 warning:

FILE: /test/toolkit/dist/modules/contrib/privatemsg/privatemsg.module
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 2016 | WARNING | Since PHP 7.0, functions inspecting arguments, like
      |         | func_get_args(), no longer report the original
      |         | value as passed to a parameter, but will instead
      |         | provide the current value. The parameter "$query"
      |         | was used, and possibly changed (by reference), on
      |         | line 2004.
----------------------------------------------------------------------

Proposed resolution

Extracting function first parameter with function_get_args()

📌 Task
Status

Closed: outdated

Version

1.4

Component

Code

Created by

Live updates comments and jobs are added and updated live.
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.

No activities found.

Production build 0.71.5 2024