{"record":{"id":"8d86307b982351d3","repo":"slimphp/Slim","slug":"middleware-s-is-not-resolvable","errorCode":null,"errorMessage":"Middleware %s is not resolvable","messagePattern":"Middleware (.+?) is not resolvable","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"Slim/MiddlewareDispatcher.php","lineNumber":230,"sourceCode":"                        $instance = new $resolved($this->container);\n                    }\n\n                    if ($instance && $instance instanceof MiddlewareInterface) {\n                        return $instance->process($request, $this->next);\n                    }\n\n                    $callable = $instance ?? $resolved;\n                    if ($instance && $method) {\n                        $callable = [$instance, $method];\n                    }\n\n                    if ($this->container && $callable instanceof Closure) {\n                        $callable = $callable->bindTo($this->container);\n                    }\n                }\n\n                if (!is_callable($callable)) {\n                    throw new RuntimeException(\n                        sprintf(\n                            'Middleware %s is not resolvable',\n                            $this->middleware\n                        )\n                    );\n                }\n\n                /** @var ResponseInterface */\n                return $callable($request, $this->next);\n            }\n        };\n\n        return $this;\n    }\n\n    /**\n     * Add a (non-standard) callable middleware to the stack\n     *","sourceCodeStart":212,"sourceCodeEnd":248,"githubUrl":"https://github.com/slimphp/Slim/blob/80900fb39cafce3ae53b18a2c4f642a122f03095/Slim/MiddlewareDispatcher.php#L212-L248","documentation":"Error \"Middleware %s is not resolvable\" thrown in slimphp/Slim.","triggerScenarios":"Thrown at Slim/MiddlewareDispatcher.php:230 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"}