func_get_arg warning

Created on 30 April 2024, 18 days ago
Updated 4 May 2024, 14 days 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 Spain, πŸ‡ͺπŸ‡Ί

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

Comments & Activities

Production build 0.67.2 2024