From 6a36a2217e22215deba87ff0a8c405e060516cb6 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 29 Dec 2023 08:46:14 +0100 Subject: [PATCH] [Validator] Mention support of Stringable objects in Charset constraint --- reference/constraints/Charset.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reference/constraints/Charset.rst b/reference/constraints/Charset.rst index 5dfa7037c6b..66bdb4c99c4 100644 --- a/reference/constraints/Charset.rst +++ b/reference/constraints/Charset.rst @@ -5,7 +5,8 @@ Charset The ``Charset`` constraint was introduced in Symfony 7.1. -Validates that a string is encoded in a given charset. +Validates that a string (or an object implementing the ``Stringable`` PHP interface) +is encoded in a given charset. ========== ===================================================================== Applies to :ref:`property or method `