type & PHPParser_Node_Stmt_Class::MODIFIER_STATIC) && ('__construct' == $this->name || '__destruct' == $this->name || '__clone' == $this->name) ) { throw new PHPParser_Error(sprintf('"%s" method cannot be static', $this->name)); } } }