therselman 7 years ago
parent
commit
ea7f216a44
  1. 2
      src/Request.php

2
src/Request.php

@ -310,7 +310,7 @@ class Request @@ -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…
Cancel
Save