{"record":{"id":"2e723e9a9300c43e","repo":"pestphp/pest","slug":"the-preset-s-does-not-exist-the-available-pres","errorCode":null,"errorMessage":"The preset [%s] does not exist. The available presets are [%s].","messagePattern":"The preset \\[(.+?)\\] does not exist\\. The available presets are \\[(.+?)\\]\\.","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"src/Preset.php","lineNumber":88,"sourceCode":"        }\n\n        self::$customPresets[$name] = $execute;\n    }\n\n    /**\n     * @param  array<int, mixed>  $arguments\n     *\n     * @throws InvalidArgumentException\n     */\n    public function __call(string $name, array $arguments): AbstractPreset\n    {\n        if (! array_key_exists($name, self::$customPresets)) {\n            $availablePresets = [\n                ...['php', 'laravel', 'strict', 'security', 'relaxed'],\n                ...array_keys(self::$customPresets),\n            ];\n\n            throw new InvalidArgumentException(sprintf('The preset [%s] does not exist. The available presets are [%s].', $name, implode(', ', $availablePresets)));\n        }\n\n        return $this->executePreset(new Custom($this->baseNamespaces(), $name, self::$customPresets[$name]));\n    }\n\n    /**\n     * @template TPreset of AbstractPreset\n     *\n     * @param  TPreset  $preset\n     * @return TPreset\n     */\n    private function executePreset(AbstractPreset $preset): AbstractPreset\n    {\n        $this->baseNamespaces();\n\n        $preset->execute();\n\n        return $preset;","sourceCodeStart":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/pestphp/pest/blob/1af74a215c3a89bc7a44fc6f9322e369eaad2423/src/Preset.php#L70-L106","documentation":"Error \"The preset [%s] does not exist. The available presets are [%s].\" thrown in pestphp/pest.","triggerScenarios":"Thrown at src/Preset.php:88 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":"1af74a215c3a89bc7a44fc6f9322e369eaad2423","analyzedAt":"2026-08-21T02:16:38.132Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}