PHPCompatibility

Created on 3 April 2023, over 1 year ago
Updated 15 April 2023, over 1 year ago

1.0 Problem/Motivation
Drupal 9.5.7 PHP8.1.17
2.0 Detailed steps to reproduce
Running : ./bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 8.1 --extensions=php web/modules -v

I get this :

FILE: /PATH/web/modules/contrib/webform_civicrm/src/Utils.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 689 | ERROR | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as passed to a parameter, but will instead provide the
     |       | current value. The parameter "$params" was changed on line 677.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /PATH/web/modules/contrib/webform_civicrm/src/WebformCivicrmBase.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 621 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove ambiguity.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

3.0 Proposed resolution

🐛 Bug report
Status

Needs work

Version

6.0

Component

Webform/Drupal

Created by

🇫🇷France andrimont

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

Comments & Activities

Production build 0.71.5 2024