src/Standards/BestIt/CodeSniffer/AbstractFileDecorator.php
public function addError(
        $error,
        $stackPtr,
        $code,
        $data = [],
        $severity = 0,
        $fixable = false
    ) {
        return $this->__call(__FUNCTION__, func_get_args());
    }
public function addError(
        $error,
        $stackPtr,
        $code,
        $data = [],
        $severity = 0,
        $fixable = false
    ) {
        return $this->__call(__FUNCTION__, func_get_args());
    }
public function addError ( $ error , $ stackPtr , $ code , $ data = [ ] , $ severity = 0 , $ fixable = false ) { return $ this -> __call ( __FUNCTION__ , func_get_args ( ) ) ; }
Records an error against a specific token in the file.

@param string $error The error message.
@param int $stackPtr The stack position where the error occurred.
@param string $code A violation code unique to the sniff message.
@param array $data Replacements for the error message.
@param int $severity The severity level for this error. A value of 0
will be converted into the default severity level.
@param boolean $fixable Can the error be fixed by the sniff?

@return boolean
Records an error against a specific token in the file .