From 006b41e3f87536a2f57accf755bb8b06225bb24c Mon Sep 17 00:00:00 2001 From: Antoine Lamirault <lamiraultantoine@gmail.com> Date: Fri, 21 Mar 2025 09:23:37 +0100 Subject: [PATCH] Update type_info.rst --- components/type_info.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/type_info.rst b/components/type_info.rst index 25d654995e0..7f767c1149e 100644 --- a/components/type_info.rst +++ b/components/type_info.rst @@ -39,9 +39,9 @@ to the :class:`Symfony\\Component\\TypeInfo\\Type` static methods as following:: // ... and more methods defined in Symfony\Component\TypeInfo\TypeFactoryTrait // you can also use a generic method that detects the type automatically - Type::fromValue(1.1) // same as Type::float() - Type::fromValue('...') // same as Type::string() - Type::fromValue(false) // same as Type::false() + Type::fromValue(1.1); // same as Type::float() + Type::fromValue('...'); // same as Type::string() + Type::fromValue(false); // same as Type::false() .. versionadded:: 7.3