alexia\mar\tests\critical::_newOperatorWithReference PHP Méthode

_newOperatorWithReference() public méthode

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