Closed antecedent closed 7 years ago
Errors of the following kind are generated even when the original code (before preprocessing) passes an L-value to the constructor:
Warning: Parameter 1 to Constructee::__construct() expected to be a reference, value given
For example, this happens in:
class Constructee { public function __construct(&$reference) { $reference = null; } } $variable = 123; new Constructee($variable);
Errors of the following kind are generated even when the original code (before preprocessing) passes an L-value to the constructor:
For example, this happens in: