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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3067221-fix-PHPCompatibility-warning.patch | 1.31 KB | znerol |
Comments
Comment #2
znerol commentedThanks for taking the time to report the issue. Attached a patch which should fix this.
Comment #3
hitchshockComment #4
hitchshockComment #6
znerol commented