Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter

Created on 12 July 2019, almost 5 years ago
Updated 13 February 2024, 5 months ago

$ phpcs --standard=PHPCompatibility --extensions=php,module,inc,install,test,profile,theme,css --runtime-set testVersion /sites/default/modules/contrib/flag

FILE: ...es\default\modules\contrib\flag\tests\flag_hook_test\flag_hook_test.mod ule
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
71 | 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 "$type" was used, and possibly changed (by
| | reference), on line 70.
80 | 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 "$type" was used, and possibly changed (by
| | reference), on line 79.
89 | 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 "$type" was used, and possibly changed (by
| | reference), on line 88.
98 | 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 "$type" was used, and possibly changed (by
| | reference), on line 97.
--------------------------------------------------------------------------------

🐛 Bug report
Status

RTBC

Version

3.9

Component

Miscellaneous

Created by

🇮🇳India devdesagar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

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.69.0 2024