/** * Check the use of a variable variable ($$a). * Called when the current token is a single $. * * @param TokenInfo $token */ private function _checkVariableVariable($token) { if ($this->_isActive('variableVariable')) { if ($this->tokenizer->checkNextToken(T_VARIABLE)) { $msg = $this->_getMessage("VARIABLE_VARIABLE", '$' . $this->tokenizer->peekNextToken()->text); $this->_writeError('variableVariable', $msg); } } }