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
4545 *
4646 * If this is non-empty, the other methods won't be used.
4747 *
48- * @return string target absolute uri
48+ * @return string|null target absolute uri
4949 */
50- public function getUri (): string ;
50+ public function getUri (): ? string ;
5151
5252 /**
5353 * Get the target route document this route redirects to.
@@ -62,7 +62,7 @@ public function getRouteTarget(): ?SymfonyRoute;
6262 * Get the name of the target route for working with the symfony standard
6363 * router.
6464 */
65- public function getRouteName (): string ;
65+ public function getRouteName (): ? string ;
6666
6767 /**
6868 * 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;
7979 *
8080 * @return SymfonyRoute[] Iterable list with the keys being the names from the $names array
8181 */
82- public function getRoutesByNames (?array $ names ): array ;
82+ public function getRoutesByNames (?array $ names = null ): iterable ;
8383}
Original file line number Diff line number Diff line change 3232
3333class DynamicRouterTest extends TestCase
3434{
35-
3635 /**
3736 * @var UrlMatcherInterface&MockObject
3837 */
You can’t perform that action at this time.
0 commit comments