File tree 1 file changed +5
-2
lines changed
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::
36
36
Type::generic(Type::object(Collection::class), Type::int());
37
37
Type::list(Type::bool());
38
38
Type::intersection(Type::object(\Stringable::class), Type::object(\Iterator::class));
39
- // ... and more methods defined in Symfony\Component\TypeInfo\TypeFactoryTrait
40
39
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
+
42
45
Type::fromValue(1.1); // same as Type::float()
43
46
Type::fromValue('...'); // same as Type::string()
44
47
Type::fromValue(false); // same as Type::false()
You can’t perform that action at this time.
0 commit comments