From 6967c078e48d05b9222f2da5702eb1f4e977dd6a Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 27 Jun 2025 15:40:38 +0200 Subject: [PATCH] [Routing] Throw exception for non-array _query parameter --- routing.rst | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/routing.rst b/routing.rst index e32a18eb240..34e8a2f0a70 100644 --- a/routing.rst +++ b/routing.rst @@ -1147,16 +1147,7 @@ special parameters created by Symfony: Used to set the :ref:`locale ` on the request. ``_query`` - Used to add query parameters to the generated URL. - - .. versionadded:: 7.4 - - The ``_query`` parameter was introduced in Symfony 7.4. - - .. deprecated:: 7.4 - - Passing a value other than an array as the ``_query`` parameter was - deprecated in Symfony 7.4. + An array of query parameters to add to the generated URL. You can include these attributes (except ``_fragment``) both in individual routes and in route imports. Symfony defines some special attributes with the same name