This commit is contained in:
therselman 2017-07-12 18:28:18 +02:00
parent 7e6e08586c
commit ea7f216a44

View File

@ -310,7 +310,7 @@ class Request
else else
{ {
if ( ! $param->isOptional()) if ( ! $param->isOptional())
throw new \Exception('Unable to find NON-optional parameter `' . $param->name . '` for route controller/handler: ' . var_export($this->route, true)); throw new \Exception('Unable to find NON-optional parameter `' . $param->name . ($param->hasType() ? '` of type `' . $param->getType() : null) . '` for route controller/handler: ' . var_export($this->route, true));
$args[] = $param->getDefaultValue(); $args[] = $param->getDefaultValue();
} }
} }