8000 [Routing] Backport type fixes · symfony/symfony@7e89c91 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e89c91

Browse files
committed
[Routing] Backport type fixes
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent 8b8a5eb commit 7e89c91

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ trait CompiledUrlMatcherTrait
3030
private $staticRoutes = [];
3131
private $regexpList = [];
3232
private $dynamicRoutes = [];
33+
34+
/**
35+
* @var callable|null
36+
*/
3337
private $checkCondition;
3438

3539
public function match(string $pathinfo): array

src/Symfony/Component/Routing/RouteCollection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@
2626
class RouteCollection implements \IteratorAggregate, \Countable
2727
{
2828
/**
29-
* @var Route[]
29+
* @var array<string, Route>
3030
*/
3131
private $routes = [];
3232

3333
/**
34-
* @var array
34+
* @var array<string, ResourceInterface>
3535
*/
3636
private $resources = [];
3737

3838
/**
39-
* @var int[]
39+
* @var array<string, int>
4040
*/
4141
private $priorities = [];
4242

0 commit comments

Comments
 (0)
0