Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/DynamicRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,13 @@ class DynamicRouter implements RouterInterface, RequestMatcherInterface, Chained
*
* @throws \InvalidArgumentException If the matcher is not a request or url matcher
*/
public function __construct(RequestContext $context,
$matcher,
UrlGeneratorInterface $generator,
$uriFilterRegexp = '',
EventDispatcherInterface $eventDispatcher = null,
RouteProviderInterface $provider = null
public function __construct(
RequestContext $context,
$matcher,
UrlGeneratorInterface $generator,
$uriFilterRegexp = '',
EventDispatcherInterface $eventDispatcher = null,
RouteProviderInterface $provider = null
) {
$this->context = $context;
if (!$matcher instanceof RequestMatcherInterface && !$matcher instanceof UrlMatcherInterface) {
Expand Down
5 changes: 3 additions & 2 deletions tests/Unit/Routing/ChainRouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,9 @@ public function testMatchAndNotAllowed()
->expects($this->once())
->method('match')
->with($url)
->will($this->returnValue(['test']
))
->will($this->returnValue(
['test']
))
;
$this->router->add($low, 10);
$this->router->add($high, 100);
Expand Down