NonVariableReferenceReturn

Emitted when a function returns by reference expression that is not a variable

<?php

function &getByRef(): int {
    return 5;
}