The PHPCompatibility sniffer for PHPCS flags several issues related to "using call-time pass-by-reference"
$ phpcs --standard=PHPCompatibility --runtime-set testVersion 7.1 contrib/devel
===========================
CONTRIB (warnings excluded)
===========================
FILE: .../contrib/devel/webprofiler/src/Views/TraceableViewExecutable.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
138 | ERROR | Using a call-time pass-by-reference is deprecated
| | since PHP 5.3 and prohibited since PHP 5.4
----------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#3 | devel-n2890415-3.patch | 560 bytes | DamienMcKenna |
|
Comments
Comment #2
click2tman CreditAttribution: click2tman commentedComment #3
DamienMcKennaThis is the code, but does it still work?
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedAnyone available to test this?
Comment #5
lussolucaI know that PHPCS is not happy with this, but the code for this method is copied from the Drupal\views\ViewExecutable.php from Core, with some minor modification.
I prefer not to change it to remain aligned with the Core version. Maybe we can open an issue on the Views issue queue (if it doesn't already exists)?
Comment #6
DamienMcKennaGood catch, that file in Views still includes this line:
Comment #7
Liam Morland