Skip to content

Commit 171420d

Browse files
committed
minor #60314 docs: Update @param for $match to reflect the correct default value. (chrisshennan)
This PR was merged into the 7.2 branch. Discussion ---------- docs: Update `@param` for $match to reflect the correct default value. | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | Fix | License | MIT The docblock description for the $match parameter on the Regex constraint contains the wrong default value - `false` - and this PR changes it to `true` ![image](https://github.com/user-attachments/assets/c725e0f5-525d-4fda-85f3-279ce395a1cb) Commits ------- b2d7ece docs: Update `@param` for $match to reflect the correct default value.
2 parents 070869c + b2d7ece commit 171420d

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/Validator/Constraints

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Constraints/Regex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Regex extends Constraint
3838
/**
3939
* @param string|array<string,mixed>|null $pattern The regular expression to match
4040
* @param string|null $htmlPattern The pattern to use in the HTML5 pattern attribute
41-
* @param bool|null $match Whether to validate the value matches the configured pattern or not (defaults to false)
41+
* @param bool|null $match Whether to validate the value matches the configured pattern or not (defaults to true)
4242
* @param string[]|null $groups
4343
* @param array<string,mixed> $options
4444
*/

0 commit comments

Comments
 (0)