Skip to content

Commit 1a389bb

Browse files
committed
minor #19725 [HttpKernel] MapQueryParameter regex example correction (lkolndeep)
This PR was merged into the 6.4 branch. Discussion ---------- [HttpKernel] MapQueryParameter regex example correction Correction of the example using MapQueryParameter with the filter using a regex. Commits ------- 54bb5cb MapQueryParameter regex example correction
2 parents 4e0fbbd + 54bb5cb commit 1a389bb

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)