{"record":{"id":"4886e771b97db1b7","repo":"phalcon/cphalcon","slug":"method-call-must-be-an-array-on-position-position","errorCode":null,"errorMessage":"Method call must be an array on position {position}","messagePattern":"Method call must be an array on position (.+?)","errorType":"exception","errorClass":"Phalcon\\Di\\Exceptions\\MethodCallMustBeArray","httpStatus":null,"severity":"error","filePath":"phalcon/Di/Service/Builder.zep","lineNumber":102,"sourceCode":"         */\n        if fetch paramCalls, definition[\"calls\"] {\n            if unlikely typeof instance !== \"object\" {\n                throw new SetterInjectionRequiresInstance();\n            }\n\n            if unlikely typeof paramCalls != \"array\" {\n                throw new SetterParametersMustBeArray();\n            }\n\n            /**\n             * The method call has parameters\n             */\n            for methodPosition, method in paramCalls {\n                /**\n                 * The call parameter must be an array of arrays\n                 */\n                if unlikely typeof method != \"array\" {\n                    throw new MethodCallMustBeArray(methodPosition);\n                }\n\n                /**\n                 * A param 'method' is required\n                 */\n                if unlikely !fetch methodName, method[\"method\"] {\n                    throw new MethodNameRequired(methodPosition);\n                }\n\n                /**\n                 * Create the method call\n                 */\n                let methodCall = [instance, methodName];\n\n                if fetch arguments, method[\"arguments\"] {\n                    if unlikely typeof arguments != \"array\" {\n                        throw new CallArgumentsMustBeArray((int) methodPosition);\n                    }","sourceCodeStart":84,"sourceCodeEnd":120,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Di/Service/Builder.zep#L84-L120","documentation":"Error \"Method call must be an array on position {position}\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Di/Service/Builder.zep:102 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"}