You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @throws \InvalidArgumentException If the matcher is not a request or url matcher
93
100
*/
94
101
publicfunction__construct(RequestContext$context,
95
102
$matcher,
@@ -100,7 +107,9 @@ public function __construct(RequestContext $context,
100
107
) {
101
108
$this->context = $context;
102
109
if (!$matcherinstanceof RequestMatcherInterface && !$matcherinstanceof UrlMatcherInterface) {
103
-
thrownew \InvalidArgumentException('Matcher must implement either Symfony\Component\Routing\Matcher\RequestMatcherInterface or Symfony\Component\Routing\Matcher\UrlMatcherInterface');
110
+
thrownew \InvalidArgumentException(
111
+
sprintf('Matcher must implement either %s or %s', RequestMatcherInterface::class, UrlMatcherInterface::class)
112
+
);
104
113
}
105
114
$this->matcher = $matcher;
106
115
$this->generator = $generator;
@@ -259,7 +268,7 @@ public function matchRequest(Request $request)
0 commit comments