From 22606dfc124e6bed698d814498a56546661f06bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Wed, 9 Jun 2021 09:13:11 +0200 Subject: [PATCH] Updates --- composer.json | 2 +- src/Pecee/SimpleRouter/Route/Route.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 43e4a5f..a8294cd 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "ext-json": "*" }, "require-dev": { - "phpunit/phpunit": "^8", + "phpunit/phpunit": "^7", "mockery/mockery": "^1", "phpstan/phpstan": "^0", "phpstan/phpstan-phpunit": "^0", diff --git a/src/Pecee/SimpleRouter/Route/Route.php b/src/Pecee/SimpleRouter/Route/Route.php index 0932f31..a8a5c37 100644 --- a/src/Pecee/SimpleRouter/Route/Route.php +++ b/src/Pecee/SimpleRouter/Route/Route.php @@ -30,6 +30,9 @@ abstract class Route implements IRoute protected $urlRegex = '/^%s\/?$/u'; protected $group; protected $parent; + /** + * @var string|callable|null + */ protected $callback; protected $defaultNamespace;