{"record":{"id":"5e5b62589e57b45c","repo":"getgrav/grav","slug":"invalid-output-type","errorCode":null,"errorMessage":"Invalid output type","messagePattern":"Invalid output type","errorType":"validation","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"system/src/Grav/Common/Scheduler/Scheduler.php","lineNumber":424,"sourceCode":"        $this->failed_jobs = [];\n        $this->output_schedule = [];\n\n        return $this;\n    }\n\n    /**\n     * Get the scheduler verbose output.\n     *\n     * @param  string  $type  Allowed: text, html, array\n     * @return string|array  The return depends on the requested $type\n     */\n    public function getVerboseOutput($type = 'text')\n    {\n        return match ($type) {\n            'text' => implode(\"\\n\", $this->output_schedule),\n            'html' => implode('<br>', $this->output_schedule),\n            'array' => $this->output_schedule,\n            default => throw new InvalidArgumentException('Invalid output type'),\n        };\n    }\n\n    /**\n     * Remove all queued Jobs.\n     *\n     * @return $this\n     */\n    public function clearJobs()\n    {\n        $this->jobs = [];\n\n        return $this;\n    }\n\n    /**\n     * Helper to get the full Cron command\n     *","sourceCodeStart":406,"sourceCodeEnd":442,"githubUrl":"https://github.com/getgrav/grav/blob/6040efed04efa69b8209448ed81308e7c24147c2/system/src/Grav/Common/Scheduler/Scheduler.php#L406-L442","documentation":"Error \"Invalid output type\" thrown in getgrav/grav.","triggerScenarios":"Thrown at system/src/Grav/Common/Scheduler/Scheduler.php:424 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6040efed04efa69b8209448ed81308e7c24147c2","analyzedAt":"2026-08-17T05:07:31.593Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}