1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-08-04 23:47:30 +02:00

type-hint array in constructor parameter too

This commit is contained in:
Danny van Kooten
2019-11-10 20:33:12 +01:00
parent 3a97b2c432
commit 7e2b48db00

View File

@@ -49,7 +49,7 @@ class AltoRouter
* @param array $matchTypes
* @throws Exception
*/
public function __construct(array $routes = [], $basePath = '', $matchTypes = [])
public function __construct(array $routes = [], $basePath = '', array $matchTypes = [])
{
$this->addRoutes($routes);
$this->setBasePath($basePath);