func_get_arg warning

Created on 30 April 2024, about 1 year ago
Updated 18 May 2024, about 1 year ago

I'm upgrading a site to 8.3 and PHPCompatibility throws this warning

FILE: /var/www/html/web/modules/contrib/csp/src/EventSubscriber/ResponseCspSubscriber.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
 97 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_arg(), no longer report the original value as passed to
    |         | a parameter, but will instead provide the current value. The parameter "$nonce" was used, and possibly changed (by
    |         | reference), on line 95.
-------------------------------------

Seems to be related to https://www.php.net/manual/en/migration70.incompatible.php#migration70.i...

💬 Support request
Status

Fixed

Version

2.0

Component

Code

Created by

🇪🇸Spain pcambra Asturies

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

Comments & Activities

Production build 0.71.5 2024