Skip to content

Commit ed1f530

Browse files
committed
feature #19352 [Validator] Mention support of Stringable objects in Charset constraint (javiereguiluz)
This PR was squashed before being merged into the 7.1 branch. Discussion ---------- [Validator] Mention support of Stringable objects in Charset constraint Fixes #19350. Commits ------- 6a36a22 [Validator] Mention support of Stringable objects in Charset constraint
2 parents 51982ef + 6a36a22 commit ed1f530

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)