phalcon/cphalcon · error · Phalcon\Di\Exceptions\CallArgumentsMustBeArray
Call arguments must be an array on position {position}
Error message
Call arguments must be an array on position {position} What it means
Error "Call arguments must be an array on position {position}" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Di/Service/Builder.zep:119
if unlikely typeof method != "array" {
throw new MethodCallMustBeArray(methodPosition);
}
/**
* A param 'method' is required
*/
if unlikely !fetch methodName, method["method"] {
throw new MethodNameRequired(methodPosition);
}
/**
* Create the method call
*/
let methodCall = [instance, methodName];
if fetch arguments, method["arguments"] {
if unlikely typeof arguments != "array" {
throw new CallArgumentsMustBeArray((int) methodPosition);
}
if !empty arguments {
/**
* Call the method on the instance
*/
call_user_func_array(
methodCall,
this->buildParameters(container, arguments)
);
/**
* Go to next method call
*/
continue;
}
}
View on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Di/Service/Builder.zep:119 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phalcon/cphalcon@b7419de9cd (2026-08-21).
Data as JSON: /api/errors/062c410aedafa611.
Report an issue: GitHub.