We should not try to instanciate a object when the getType is isBuiltin
This commit is contained in:
@@ -49,6 +49,7 @@ class ObjectSpawners
|
||||
|
||||
if ($signatureItem->getType()->isBuiltin()) {
|
||||
$returnParameters[] = $routeParameters[$key];
|
||||
continue;
|
||||
}
|
||||
|
||||
if (isset($routeParameters[$key])) {
|
||||
@@ -83,6 +84,7 @@ class ObjectSpawners
|
||||
|
||||
if ($signatureItem->getType()->isBuiltin()) {
|
||||
$returnParameters[] = $routeParameters[$key];
|
||||
continue;
|
||||
}
|
||||
|
||||
if (isset($routeParameters[$key])) {
|
||||
@@ -117,6 +119,7 @@ class ObjectSpawners
|
||||
|
||||
if ($signatureItem->getType()->isBuiltin()) {
|
||||
$returnParameters[] = $routeParameters[$key];
|
||||
continue;
|
||||
}
|
||||
|
||||
if (isset($routeParameters[$key])) {
|
||||
|
||||
Reference in New Issue
Block a user