public function registerErrorHandler(string $projectPath)
    {
        if (null === $this->errorHandler) {
            return false;
        }

        $callback = $this->createCallback(
                $this->errorHandler['class'],
                $this->errorHandler['method'],
                $projectPath
        );
        set_error_handler($callback);
        return $callback[0];
    }
public function registerErrorHandler(string $projectPath)
    {
        if (null === $this->errorHandler) {
            return false;
        }

        $callback = $this->createCallback(
                $this->errorHandler['class'],
                $this->errorHandler['method'],
                $projectPath
        );
        set_error_handler($callback);
        return $callback[0];
    }
public function registerErrorHandler ( string $ projectPath ) { if ( null === $ this -> errorHandler ) { return false ; } $ callback = $ this -> createCallback ( $ this -> errorHandler [ 'class' ] , $ this -> errorHandler [ 'method' ] , $ projectPath ) ; set_error_handler ( $ callback ) ; return $ callback [ 0 ] ; }
registers error handler for current mode

Return value depends on registration: if no error handler set return value
will be false, if registered handler was an instance the handler instance
will be returned, and true in any other case.

@param   string       $projectPath  path to project
@return  bool|object
registers error handler for current mode