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:
@@ -49,7 +49,7 @@ class AltoRouter
|
|||||||
* @param array $matchTypes
|
* @param array $matchTypes
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function __construct(array $routes = [], $basePath = '', $matchTypes = [])
|
public function __construct(array $routes = [], $basePath = '', array $matchTypes = [])
|
||||||
{
|
{
|
||||||
$this->addRoutes($routes);
|
$this->addRoutes($routes);
|
||||||
$this->setBasePath($basePath);
|
$this->setBasePath($basePath);
|
||||||
|
Reference in New Issue
Block a user