{"record":{"id":"28b90cf2b357a442","repo":"phalcon/cphalcon","slug":"type-handler-is-not-callable","errorCode":null,"errorMessage":"'{type}' handler is not callable","messagePattern":"'(.+?)' handler is not callable","errorType":"exception","errorClass":"Phalcon\\Mvc\\Micro\\Exceptions\\HandlerNotCallable","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Micro.zep","lineNumber":642,"sourceCode":"\n            let finishHandlers = this->finishHandlers;\n            let this->stopped = false;\n\n            /**\n             * Calls the finish handlers\n             */\n            for finish in finishHandlers {\n                /**\n                 * Try to execute middleware as plugins\n                 */\n                if typeof finish === \"object\" && finish instanceof MiddlewareInterface {\n                    /**\n                     * Call the middleware\n                     */\n                    let status = finish->call(this);\n                } else {\n                    if unlikely !is_callable(finish) {\n                        throw new HandlerNotCallable(\"finish\");\n                    }\n\n                    /**\n                     * Call the 'finish' middleware\n                     */\n                    let status = call_user_func_array(\n                        finish,\n                        [this]\n                    );\n                }\n\n                /**\n                 * break the execution if the middleware was stopped\n                 */\n                if this->stopped {\n                    break;\n                }\n            }","sourceCodeStart":624,"sourceCodeEnd":660,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Micro.zep#L624-L660","documentation":"Error \"'{type}' handler is not callable\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Micro.zep:642 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":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}