{"record":{"id":"96dce820badbf425","repo":"filp/whoops","slug":"path-is-not-a-valid-directory","errorCode":null,"errorMessage":"'$path' is not a valid directory","messagePattern":"'\\$path' is not a valid directory","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"src/Whoops/Handler/PrettyPageHandler.php","lineNumber":638,"sourceCode":"     */\n    public function getPageTitle()\n    {\n        return $this->pageTitle;\n    }\n\n    /**\n     * Adds a path to the list of paths to be searched for resources.\n     *\n     * @param string $path\n     *\n     * @throws InvalidArgumentException If $path is not a valid directory\n     *\n     * @return static\n     */\n    public function addResourcePath($path)\n    {\n        if (!is_dir($path)) {\n            throw new InvalidArgumentException(\n                \"'$path' is not a valid directory\"\n            );\n        }\n\n        array_unshift($this->searchPaths, $path);\n        return $this;\n    }\n\n    /**\n     * Adds a custom css file to be loaded.\n     *\n     * @param string|null $name\n     *\n     * @return static\n     */\n    public function addCustomCss($name)\n    {\n        $this->customCss = $name;","sourceCodeStart":620,"sourceCodeEnd":656,"githubUrl":"https://github.com/filp/whoops/blob/fa1bc9c95a1b392fbdb8a410dbbcb1d6a030fff7/src/Whoops/Handler/PrettyPageHandler.php#L620-L656","documentation":"Error \"'$path' is not a valid directory\" thrown in filp/whoops.","triggerScenarios":"Thrown at src/Whoops/Handler/PrettyPageHandler.php:638 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"}