Skip to content

Commit f1b1c69

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: refer TypeFactoryTrait to github file
2 parents 0328a55 + 76209f3 commit f1b1c69

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/type_info.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ to the :class:`Symfony\\Component\\TypeInfo\\Type` static methods as following::
3636
Type::generic(Type::object(Collection::class), Type::int());
3737
Type::list(Type::bool());
3838
Type::intersection(Type::object(\Stringable::class), Type::object(\Iterator::class));
39-
// ... and more methods defined in Symfony\Component\TypeInfo\TypeFactoryTrait
4039

41-
// you can also use a generic method that detects the type automatically
40+
Many others methods are available and can be found
41+
in :class:`Symfony\\Component\\TypeInfo\\TypeFactoryTrait`.
42+
43+
You can also use a generic method that detects the type automatically::
44+
4245
Type::fromValue(1.1); // same as Type::float()
4346
Type::fromValue('...'); // same as Type::string()
4447
Type::fromValue(false); // same as Type::false()

0 commit comments

Comments
 (0)