{"record":{"id":"062c410aedafa611","repo":"phalcon/cphalcon","slug":"call-arguments-must-be-an-array-on-position-posit","errorCode":null,"errorMessage":"Call arguments must be an array on position {position}","messagePattern":"Call arguments must be an array on position (.+?)","errorType":"exception","errorClass":"Phalcon\\Di\\Exceptions\\CallArgumentsMustBeArray","httpStatus":null,"severity":"error","filePath":"phalcon/Di/Service/Builder.zep","lineNumber":119,"sourceCode":"                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                    }\n\n                    if !empty arguments {\n                        /**\n                         * Call the method on the instance\n                         */\n                        call_user_func_array(\n                            methodCall,\n                            this->buildParameters(container, arguments)\n                        );\n\n                        /**\n                         * Go to next method call\n                         */\n                        continue;\n                    }\n                }\n","sourceCodeStart":101,"sourceCodeEnd":137,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Di/Service/Builder.zep#L101-L137","documentation":"Error \"Call arguments must be an array on position {position}\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Di/Service/Builder.zep:119 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"}