Skip to content

Commit 54bb5cb

Browse files
committed
MapQueryParameter regex example correction
1 parent 5fd5af5 commit 54bb5cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ attribute, arguments of your controller's action can be automatically fulfilled:
375375
// ...
376376

377377
public function dashboard(
378-
#[MapQueryParameter(filter: \FILTER_VALIDATE_REGEXP, options: ['regexp' => '/^\w++$/'])] string $firstName,
378+
#[MapQueryParameter(filter: \FILTER_VALIDATE_REGEXP, options: ['regexp' => '/^\w+$/'])] string $firstName,
379379
#[MapQueryParameter] string $lastName,
380380
#[MapQueryParameter(filter: \FILTER_VALIDATE_INT)] int $age,
381381
): Response

0 commit comments

Comments
 (0)