From 54bb5cba6af635724cf141cb8f3cef1010a4c426 Mon Sep 17 00:00:00 2001 From: lkolndeep Date: Sat, 30 Mar 2024 16:00:11 +0100 Subject: [PATCH] MapQueryParameter regex example correction --- controller.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.rst b/controller.rst index 7a3e7aec0f2..436326aa700 100644 --- a/controller.rst +++ b/controller.rst @@ -375,7 +375,7 @@ attribute, arguments of your controller's action can be automatically fulfilled: // ... public function dashboard( - #[MapQueryParameter(filter: \FILTER_VALIDATE_REGEXP, options: ['regexp' => '/^\w++$/'])] string $firstName, + #[MapQueryParameter(filter: \FILTER_VALIDATE_REGEXP, options: ['regexp' => '/^\w+$/'])] string $firstName, #[MapQueryParameter] string $lastName, #[MapQueryParameter(filter: \FILTER_VALIDATE_INT)] int $age, ): Response