We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da93c7b commit 8b9ca6fCopy full SHA for 8b9ca6f
components/type_info.rst
@@ -58,12 +58,6 @@ based on reflection or a simple string::
58
59
// Type instances have several helper methods
60
61
- // returns the main type (e.g. in this example it returns an "array" Type instance);
62
- // for nullable types (e.g. string|null) it returns the non-null type (e.g. string)
63
- // and for compound types (e.g. int|string) it throws an exception because both types
64
- // can be considered the main one, so there's no way to pick one
65
- $baseType = $type->getBaseType();
66
-
67
// for collections, it returns the type of the item used as the key;
68
// in this example, the collection is a list, so it returns an "int" Type instance
69
$keyType = $type->getCollectionKeyType();
0 commit comments