/** * Check self::$var * * @param TokenInfo $token */ private function _checkSelfToken($token) { if ($this->_isActive('useSelfToken')) { if (true === $this->_inClass && true === $this->_inFunction && false === $this->_functionStatic) { $strVarname = $this->tokenizer->peekNextNextToken()->text; if ('$' == $strVarname[0]) { $msg = $this->_getMessage("USE_SELF_TOKEN", 'self::' . $strVarname); $this->_writeError('useSelfToken', $msg); } } } }