While checking drupal Authcache module with PHPCompatibility for making code compatible with PHP7.2, its showing following error:

FILE: ...uthcache\modules\authcache_enum\tests\authcache_enum_test.module
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
38 | 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 "$properties" was
| | used, and possibly changed (by reference), on line
| | 37.
----------------------------------------------------------------------

FILE: ...uthcache\modules\authcache_form\tests\authcache_form_test.module
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
63 | ERROR | 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 "$form_state" was changed
| | on line 62.
----------------------------------------------------------------------

Time: 10.56 secs; Memory: 18MB

Comments

dks786 created an issue. See original summary.

znerol’s picture

Status: Active » Needs review
StatusFileSize
new1.31 KB

Thanks for taking the time to report the issue. Attached a patch which should fix this.

hitchshock’s picture

Issue tags: +PHP 7.2
hitchshock’s picture

Issue tags: +PHP 7.0 (duplicate)

  • znerol committed 36e3db6 on 7.x-2.x
    Issue #3067221 by znerol: PHP 7.2 compatible issue func_get_args()
    
znerol’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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