Merge pull request #382 from skipperbent/v3

V3
This commit is contained in:
Simon Sessingø
2018-02-27 09:05:08 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -221,6 +221,7 @@ class Router
* @param bool $rewrite
* @return string|mixed
* @throws HttpException
* @throws \Exception
*/
public function routeRequest($rewrite = false)
{
@@ -334,6 +335,7 @@ class Router
/**
* @param \Exception $e
* @throws HttpException
* @throws \Exception
* @return string
*/
protected function handleException(\Exception $e)
@@ -365,7 +367,7 @@ class Router
}
}
throw new HttpException($e->getMessage(), (int)$e->getCode(), $e->getPrevious());
throw $e;
}
public function arrayToParams(array $getParams = [], $includeEmpty = true)
+1
View File
@@ -45,6 +45,7 @@ class SimpleRouter
/**
* @throws \Pecee\Http\Exceptions\MalformedUrlException
* @throws HttpException
* @throws \Exception
*/
public static function start()
{