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
@trigger_error('Passing an object as route name is deprecated since version 2.3. Pass the `RouteObjectInterface::OBJECT_BASED_ROUTE_NAME` as route name and the object in the parameters with key `RouteObjectInterface::ROUTE_OBJECT`.', E_USER_DEPRECATED);
220
+
if (!is_string($name)) {
221
+
thrownew \InvalidArgumentException('The "$name" parameter should of type string.');
@trigger_error('Passing an object as route name is deprecated since version 2.3. Pass the `RouteObjectInterface::OBJECT_BASED_ROUTE_NAME` as route name and the object in the parameters with key `RouteObjectInterface::ROUTE_OBJECT` resp the content id with content_id.', E_USER_DEPRECATED);
68
+
if (!is_string($name)) {
69
+
thrownew \InvalidArgumentException('The "$name" parameter should of type string.');
if ($nameinstanceof RouteReferrersReadInterface) {
181
-
@trigger_error('Passing an object as route name is deprecated since version 2.3. Pass the `RouteObjectInterface::OBJECT_BASED_ROUTE_NAME` as route name and the object in the parameters with key `RouteObjectInterface::ROUTE_OBJECT`.', E_USER_DEPRECATED);
thrownewRouteNotFoundException("The route name argument '$hint' is not a RouteReferrersReadInterface instance and there is no 'content_id' parameter");
187
+
thrownewRouteNotFoundException(sprintf("The route name argument '%s' is not a RouteReferrersReadInterface instance and there is no 'content_id' parameter", gettype($name)));
@trigger_error('Passing an object as route name is deprecated since version 2.3. Pass the `RouteObjectInterface::OBJECT_BASED_ROUTE_NAME` as route name and the object in the parameters with key `RouteObjectInterface::ROUTE_OBJECT', E_USER_DEPRECATED);
168
+
if (!is_string($name)) {
169
+
thrownew \InvalidArgumentException('The "$name" parameter should of type string.');
170
170
}
171
171
172
172
if ($this->eventDispatcher) {
@@ -213,7 +213,7 @@ public function supports($name)
213
213
*
214
214
* @api
215
215
*/
216
-
publicfunctionmatch($pathinfo)
216
+
publicfunctionmatch($pathinfo): array
217
217
{
218
218
@trigger_error(__METHOD__.'() is deprecated since version 1.3 and will be removed in 2.0. Use matchRequest() instead.', E_USER_DEPRECATED);
219
219
@@ -252,7 +252,7 @@ public function match($pathinfo)
252
252
* @throws MethodNotAllowedException If a matching resource was found but
0 commit comments