{"record":{"id":"d7b1a5ef8e68ba4c","repo":"slimphp/Slim","slug":"callable-s-does-not-exist","errorCode":null,"errorMessage":"Callable %s does not exist","messagePattern":"Callable (.+?) does not exist","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"Slim/CallableResolver.php","lineNumber":144,"sourceCode":"     * @return array{object, string|null} [Instance, Method Name]\n     */\n    private function resolveSlimNotation(string $toResolve): array\n    {\n        /** @psalm-suppress ArgumentTypeCoercion */\n        preg_match(CallableResolver::$callablePattern, $toResolve, $matches);\n        [$class, $method] = $matches ? [$matches[1], $matches[2]] : [$toResolve, null];\n\n        if ($this->container && $this->container->has($class)) {\n            $instance = $this->container->get($class);\n            if (!is_object($instance)) {\n                throw new RuntimeException(sprintf('%s container entry is not an object', $class));\n            }\n        } else {\n            if (!class_exists($class)) {\n                if ($method) {\n                    $class .= '::' . $method . '()';\n                }\n                throw new RuntimeException(sprintf('Callable %s does not exist', $class));\n            }\n            $instance = new $class($this->container);\n        }\n        return [$instance, $method];\n    }\n\n    /**\n     * @param mixed $resolved\n     * @param mixed $toResolve\n     *\n     * @throws RuntimeException\n     */\n    private function assertCallable($resolved, $toResolve): callable\n    {\n        if (!is_callable($resolved)) {\n            if (is_callable($toResolve) || is_object($toResolve) || is_array($toResolve)) {\n                $formatedToResolve = ($toResolveJson = json_encode($toResolve)) !== false ? $toResolveJson : '';\n            } else {","sourceCodeStart":126,"sourceCodeEnd":162,"githubUrl":"https://github.com/slimphp/Slim/blob/80900fb39cafce3ae53b18a2c4f642a122f03095/Slim/CallableResolver.php#L126-L162","documentation":"Error \"Callable %s does not exist\" thrown in slimphp/Slim.","triggerScenarios":"Thrown at Slim/CallableResolver.php:144 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":"80900fb39cafce3ae53b18a2c4f642a122f03095","analyzedAt":"2026-08-21T01:41:09.580Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}