We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83f5144 commit c634aabCopy full SHA for c634aab
src/Application/MicroPresenter.php
@@ -84,8 +84,9 @@ public function run(Application\Request $request): Application\Response
84
85
if ($this->context) {
86
foreach ($reflection->getParameters() as $param) {
87
- if ($param->getType()) {
88
- $params[$param->getName()] = $this->context->getByType($param->getType()->getName(), false);
+ $type = $param->getType();
+ if ($type instanceof \ReflectionNamedType && !$type->isBuiltin()) {
89
+ $params[$param->getName()] = $this->context->getByType($type->getName(), false);
90
}
91
92
0 commit comments