We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TypeFactoryTrait::fromValue
2 parents fd26bac + 081a975 commit 2f2187dCopy full SHA for 2f2187d
components/type_info.rst
@@ -36,10 +36,15 @@ to the :class:`Symfony\\Component\\TypeInfo\\Type` static methods as following::
36
Type::generic(Type::object(Collection::class), Type::int());
37
Type::list(Type::bool());
38
Type::intersection(Type::object(\Stringable::class), Type::object(\Iterator::class));
39
+ Type::fromValue(1.1) // same as Type::float()
40
41
// Many others are available and can be
42
// found in Symfony\Component\TypeInfo\TypeFactoryTrait
43
44
+.. versionadded:: 7.3
45
+
46
+ The ``fromValue()`` method was introduced in Symfony 7.3.
47
48
Resolvers
49
~~~~~~~~~
50
0 commit comments