protected function validateNewExpression(New_ $stmt)
    {
        // if class name is an expression or an anonymous class, give it a pass for now
        if (!$stmt->class instanceof Expr && !$stmt->class instanceof Class_) {
            $this->ensureClassExists($this->getFullyQualifiedName($stmt->class), $stmt);
        }
    }
protected function validateNewExpression(New_ $stmt)
    {
        // if class name is an expression or an anonymous class, give it a pass for now
        if (!$stmt->class instanceof Expr && !$stmt->class instanceof Class_) {
            $this->ensureClassExists($this->getFullyQualifiedName($stmt->class), $stmt);
        }
    }
protected function validateNewExpression ( New_ $ stmt ) { // if class name is an expression or an anonymous class, give it a pass for now if ( ! $ stmt -> class instanceof Expr && ! $ stmt -> class instanceof Class_ ) { $ this -> ensureClassExists ( $ this -> getFullyQualifiedName ( $ stmt -> class ) , $ stmt ) ; } }
Validate a `new` expression.

@param New_ $stmt
Validate a new expression .