{"record":{"id":"52bd10989c85abe0","repo":"slimphp/Slim","slug":"s-container-entry-is-not-an-object","errorCode":null,"errorMessage":"%s container entry is not an object","messagePattern":"(.+?) container entry is not an object","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"Slim/CallableResolver.php","lineNumber":137,"sourceCode":"    {\n        return $toResolve instanceof MiddlewareInterface;\n    }\n\n    /**\n     * @throws RuntimeException\n     *\n     * @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","sourceCodeStart":119,"sourceCodeEnd":155,"githubUrl":"https://github.com/slimphp/Slim/blob/80900fb39cafce3ae53b18a2c4f642a122f03095/Slim/CallableResolver.php#L119-L155","documentation":"Error \"%s container entry is not an object\" thrown in slimphp/Slim.","triggerScenarios":"Thrown at Slim/CallableResolver.php:137 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"}