phalcon/cphalcon · error · Phalcon\Di\Exceptions\PropertyInjectionRequiresInstance
The definition has properties injection parameters but the c
Error message
The definition has properties injection parameters but the constructor didn't return an instance
What it means
Error "The definition has properties injection parameters but the constructor didn't return an instance" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Di/Service/Builder.zep:150
* Go to next method call
*/
continue;
}
}
/**
* Call the method on the instance without arguments
*/
call_user_func(methodCall);
}
}
/**
* The definition has properties?
*/
if fetch paramCalls, definition["properties"] {
if unlikely typeof instance !== "object" {
throw new PropertyInjectionRequiresInstance();
}
if unlikely typeof paramCalls !== "array" {
throw new SetterParametersMustBeArray();
}
/**
* The method call has parameters
*/
for propertyPosition, property in paramCalls {
/**
* The call parameter must be an array of arrays
*/
if unlikely typeof property != "array" {
throw new PropertyMustBeArray(propertyPosition);
}
/**View on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Di/Service/Builder.zep:150 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/a0e8e3a83df04384.
Report an issue: GitHub.