diff --git a/components/var_dumper.rst b/components/var_dumper.rst index 1578d1e8128..cfc57140b52 100644 --- a/components/var_dumper.rst +++ b/components/var_dumper.rst @@ -813,7 +813,7 @@ They are called in registration order. Casters are responsible for returning the properties of the object or resource being cloned in an array. They are callables that accept five arguments: -* the object or resource being casted; +* the object or resource being cast; * an array modeled for objects after PHP's native ``(array)`` cast operator; * a :class:`Symfony\\Component\\VarDumper\\Cloner\\Stub` object representing the main properties of the object (class, type, etc.); diff --git a/reference/constraints/CssColor.rst b/reference/constraints/CssColor.rst index 88a4eb4be9f..fbbc982087d 100644 --- a/reference/constraints/CssColor.rst +++ b/reference/constraints/CssColor.rst @@ -2,7 +2,7 @@ CssColor ======== Validates that a value is a valid CSS color. The underlying value is -casted to a string before being validated. +cast to a string before being validated. ========== =================================================================== Applies to :ref:`property or method ` diff --git a/reference/forms/types/options/choice_value.rst.inc b/reference/forms/types/options/choice_value.rst.inc index 4b3668074a9..137ca8a6df0 100644 --- a/reference/forms/types/options/choice_value.rst.inc +++ b/reference/forms/types/options/choice_value.rst.inc @@ -9,7 +9,7 @@ You don't normally need to worry about this, but it might be handy when processi an API request (since you can configure the value that will be sent in the API request). This can be a callable or a property path. By default, the choices are used if they -can be casted to strings. Otherwise an incrementing integer is used (starting at ``0``). +can be cast to strings. Otherwise an incrementing integer is used (starting at ``0``). If you pass a callable, it will receive one argument: the choice itself. When using the :doc:`/reference/forms/types/entity`, the argument will be the entity object