File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments