Skip to content

Commit

Permalink
Merge branch '7.0' into 7.1
Browse files Browse the repository at this point in the history
* 7.0:
  clarify how to disable client-side validation using the Regex constraint
  example function param 1 requires string
  • Loading branch information
javiereguiluz committed Aug 2, 2024
2 parents f6f6eb9 + e75bb1e commit f094dca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/var_dumper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ For example, to get a dump as a string in a variable, you can do::

$dumper->dump(
$cloner->cloneVar($variable),
function (int $line, int $depth) use (&$output): void {
function (string $line, int $depth) use (&$output): void {
// A negative depth means "end of dump"
if ($depth >= 0) {
// Adds a two spaces indentation to the line
Expand Down
4 changes: 2 additions & 2 deletions reference/constraints/Regex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Options
``htmlPattern``
~~~~~~~~~~~~~~~

**type**: ``string|boolean`` **default**: ``null``
**type**: ``string|null`` **default**: ``null``

This option specifies the pattern to use in the HTML5 ``pattern`` attribute.
You usually don't need to specify this option because by default, the constraint
Expand Down Expand Up @@ -243,7 +243,7 @@ need to specify the HTML5 compatible pattern in the ``htmlPattern`` option:
}
}
Setting ``htmlPattern`` to false will disable client side validation.
Setting ``htmlPattern`` to the empty string will disable client side validation.

``match``
~~~~~~~~~
Expand Down

0 comments on commit f094dca

Please sign in to comment.