Skip to content

Commit 6a36a22

Browse files
javiereguiluzOskarStark
authored andcommitted
[Validator] Mention support of Stringable objects in Charset constraint
1 parent f1937bb commit 6a36a22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reference/constraints/Charset.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Charset
55

66
The ``Charset`` constraint was introduced in Symfony 7.1.
77

8-
Validates that a string is encoded in a given charset.
8+
Validates that a string (or an object implementing the ``Stringable`` PHP interface)
9+
is encoded in a given charset.
910

1011
========== =====================================================================
1112
Applies to :ref:`property or method <validation-property-target>`

0 commit comments

Comments
 (0)