InvalidPassByReference
A by-reference parameter receives an expression that cannot be referenced.
Example
Section titled “Example”<?phpfunction increment(int &$val): void { $val++; }
increment(42); // literal cannot be passed by referenceHow to fix
Section titled “How to fix”Pass a variable instead of a literal or expression.