{"record":{"id":"5a37a6acd1f86ae7","repo":"phalcon/cphalcon","slug":"afterbinding-handler-is-not-callable","errorCode":null,"errorMessage":"'afterBinding' handler is not callable","messagePattern":"'afterBinding' handler is not callable","errorType":"exception","errorClass":"Phalcon\\Mvc\\Micro\\Exceptions\\HandlerNotCallable","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Micro.zep","lineNumber":536,"sourceCode":"                    }\n                }\n\n                let afterBindingHandlers = this->afterBindingHandlers;\n\n                let this->stopped = false;\n\n                /**\n                 * Calls the after binding handlers\n                 */\n                for afterBinding in afterBindingHandlers {\n                    if typeof afterBinding === \"object\" && afterBinding instanceof MiddlewareInterface {\n                        /**\n                         * Call the middleware\n                         */\n                        let status = afterBinding->call(this);\n                    } else {\n                        if unlikely !is_callable(afterBinding) {\n                            throw new HandlerNotCallable(\"afterBinding\");\n                        }\n\n                        /**\n                         * Call the afterBinding handler\n                         */\n                        let status = call_user_func(afterBinding);\n                    }\n\n                    /**\n                     * Return the status if the middleware was stopped\n                     */\n                    if this->stopped {\n                        return status;\n                    }\n                }\n\n                /**\n                 * Update the returned value","sourceCodeStart":518,"sourceCodeEnd":554,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Micro.zep#L518-L554","documentation":"Error \"'afterBinding' handler is not callable\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Micro.zep:536 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"}