private function createCallback($class, string $methodName, string $projectPath): callable
    {
        $instance = ((is_string($class)) ? (new $class($projectPath)) : ($class));
        return [$instance, $methodName];
    }
private function createCallback($class, string $methodName, string $projectPath): callable
    {
        $instance = ((is_string($class)) ? (new $class($projectPath)) : ($class));
        return [$instance, $methodName];
    }
private function createCallback ( $ class , string $ methodName , string $ projectPath ) : callable { $ instance = ( ( is_string ( $ class ) ) ? ( new $ class ( $ projectPath ) ) : ( $ class ) ) ; return [ $ instance , $ methodName ] ; }
helper method to create the callback from the handler data

@param   string|object  $class        name or instance of error handler class
@param   string         $methodName   name of error handler method
@param   string         $projectPath  path to project
@return  callback
helper method to create the callback from the handler data