{"record":{"id":"1f9b5980b864e871","repo":"filp/whoops","slug":"unknown-editor-identifier-editor-known-editors","errorCode":null,"errorMessage":"Unknown editor identifier: $editor. Known editors:implode(\",\", array_keys($this->editors))","messagePattern":"Unknown editor identifier: \\$editor\\. Known editors:implode\\(\",\", array_keys\\(\\$this->editors\\)\\)","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"src/Whoops/Handler/PrettyPageHandler.php","lineNumber":490,"sourceCode":"     *\n     * Pass either the name of a configured editor, or a closure that directly\n     * resolves an editor string.\n     *\n     * @example\n     *   $run->setEditor(function($file, $line) { return \"file:///{$file}\"; });\n     * @example\n     *   $run->setEditor('sublime');\n     *\n     * @param string|callable $editor\n     *\n     * @throws InvalidArgumentException If invalid argument identifier provided\n     *\n     * @return static\n     */\n    public function setEditor($editor)\n    {\n        if (!is_callable($editor) && !isset($this->editors[$editor])) {\n            throw new InvalidArgumentException(\n                \"Unknown editor identifier: $editor. Known editors:\" .\n                implode(\",\", array_keys($this->editors))\n            );\n        }\n\n        $this->editor = $editor;\n        return $this;\n    }\n\n    /**\n     * Get the editor href for a given file and line, if available.\n     *\n     * @param string $filePath\n     * @param int    $line\n     *\n     * @throws InvalidArgumentException If editor resolver does not return a string\n     *\n     * @return string|bool","sourceCodeStart":472,"sourceCodeEnd":508,"githubUrl":"https://github.com/filp/whoops/blob/fa1bc9c95a1b392fbdb8a410dbbcb1d6a030fff7/src/Whoops/Handler/PrettyPageHandler.php#L472-L508","documentation":"Error \"Unknown editor identifier: $editor. Known editors:implode(\",\", array_keys($this->editors))\" thrown in filp/whoops.","triggerScenarios":"Thrown at src/Whoops/Handler/PrettyPageHandler.php:490 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":"fa1bc9c95a1b392fbdb8a410dbbcb1d6a030fff7","analyzedAt":"2026-08-21T01:30:26.400Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}