diff --git a/core/modules/rest/src/RouteProcessor/RestResourceGetRouteProcessorBC.php b/core/modules/rest/src/RouteProcessor/RestResourceGetRouteProcessorBC.php index 04ff3a7e4b..cf5532615e 100644 --- a/core/modules/rest/src/RouteProcessor/RestResourceGetRouteProcessorBC.php +++ b/core/modules/rest/src/RouteProcessor/RestResourceGetRouteProcessorBC.php @@ -52,7 +52,7 @@ public function processOutbound($route_name, Route $route, array &$parameters, B if ($route_name_parts[0] === 'rest' && $route_name_parts[count($route_name_parts) - 2] === 'GET' && in_array($route_name_parts[count($route_name_parts) - 1], $this->serializerFormats, TRUE)) { array_pop($route_name_parts); $redirected_route_name = implode('.', $route_name_parts); - trigger_error(sprintf("The '%s' route is deprecated since version 8.5.x and will be removed in 9.0.0. Use the '%s' route instead.", $route_name, $redirected_route_name), E_USER_DEPRECATED); + @trigger_error(sprintf("The '%s' route is deprecated since version 8.5.x and will be removed in 9.0.0. Use the '%s' route instead.", $route_name, $redirected_route_name), E_USER_DEPRECATED); static::overwriteRoute($route, $this->routeProvider->getRouteByName($redirected_route_name)); } }