File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ interface RedirectRouteInterface extends RouteObjectInterface
45
45
*
46
46
* If this is non-empty, the other methods won't be used.
47
47
*
48
- * @return string target absolute uri
48
+ * @return string|null target absolute uri
49
49
*/
50
- public function getUri (): string ;
50
+ public function getUri (): ? string ;
51
51
52
52
/**
53
53
* Get the target route document this route redirects to.
@@ -62,7 +62,7 @@ public function getRouteTarget(): ?SymfonyRoute;
62
62
* Get the name of the target route for working with the symfony standard
63
63
* router.
64
64
*/
65
- public function getRouteName (): string ;
65
+ public function getRouteName (): ? string ;
66
66
67
67
/**
68
68
* Whether this should be a permanent or temporary redirect.
Original file line number Diff line number Diff line change @@ -79,5 +79,5 @@ public function getRouteByName(string $name): SymfonyRoute;
79
79
*
80
80
* @return SymfonyRoute[] Iterable list with the keys being the names from the $names array
81
81
*/
82
- public function getRoutesByNames (?array $ names ): array ;
82
+ public function getRoutesByNames (?array $ names = null ): iterable ;
83
83
}
Original file line number Diff line number Diff line change 32
32
33
33
class DynamicRouterTest extends TestCase
34
34
{
35
-
36
35
/**
37
36
* @var UrlMatcherInterface&MockObject
38
37
*/
You can’t perform that action at this time.
0 commit comments