protected function getErrFunc()
    {
        if (null === $this->errFunc) {
            $this->errFunc = function ($errno, $errstr, $errfile, $errline) {
                $this->stopErrorHandling();
                throw new \ErrorException($errstr, 0, $errno, $errfile, $errline);
            };
        }

        return $this->errFunc;
    }
protected function getErrFunc()
    {
        if (null === $this->errFunc) {
            $this->errFunc = function ($errno, $errstr, $errfile, $errline) {
                $this->stopErrorHandling();
                throw new \ErrorException($errstr, 0, $errno, $errfile, $errline);
            };
        }

        return $this->errFunc;
    }
protected function getErrFunc ( ) { if ( null === $ this -> errFunc ) { $ this -> errFunc = function ( $ errno , $ errstr , $ errfile , $ errline ) { $ this -> stopErrorHandling ( ) ; throw new \ ErrorException ( $ errstr , 0 , $ errno , $ errfile , $ errline ) ; } ; } return $ this -> errFunc ; }
Get the error handler

@return \Closure
Get the error handler