Skip to content

Commit bfdf56e

Browse files
committed
bug #19798 fix warning for number constraints with PHP 7.x (alexislefebvre)
This PR was merged into the 5.4 branch. Discussion ---------- fix warning for number constraints with PHP 7.x Fixes display issue on https://symfony.com/doc/5.x/reference/constraints/Positive.html > ![image](https://github.com/symfony/symfony-docs/assets/2071331/1f38acb6-950f-4837-9ae5-0f9074d49b8f) `integer` is not displayed as code. - Follow-up of #19765 Commits ------- 02e88f1 Update _php7-string-and-number.rst.inc
2 parents 25feb90 + 02e88f1 commit bfdf56e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/constraints/_php7-string-and-number.rst.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
When using PHP 7.x, if the value is a string (e.g. ``1234asd``), the validator
44
will not trigger an error. In this case, you must also use the
55
:doc:`Type constraint </reference/constraints/Type>` with
6-
``numeric``, ``integer`, etc. to reject strings.
6+
``numeric``, ``integer``, etc. to reject strings.

0 commit comments

Comments
 (0)