alexia\mar\tests\critical::_newOperatorWithReference PHP Method

_newOperatorWithReference() public method

New objects cannot be assigned by reference
public _newOperatorWithReference ( $line ) : boolean
return boolean Line matches test.
    public function _newOperatorWithReference($line)
    {
        $regex = "#&\\s?new\\s#";
        if (preg_match($regex, $line)) {
            return true;
        }
        return false;
    }