Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/type_info.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down