mirror of
https://github.com/twisterarmy/twister.git
synced 2025-03-12 05:11:07 +00:00
This commit is contained in:
parent
7e6e08586c
commit
ea7f216a44
@ -310,7 +310,7 @@ class Request
|
||||
else
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user