ReferenceConstraintViolation

March 20, 2020 ยท View on GitHub

Emitted when changing the type of a pass-by-reference variable

<?php

function foo(string &$a) {
    $a = 5;
}