File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,14 +63,14 @@ based on reflection or a simple string::
6363
6464 // Type instances have several helper methods
6565
66- // returns the main type (e.g. in this example i returns an "array" Type instance);
66+ // returns the main type (e.g. in this example it returns an "array" Type instance);
6767 // for nullable types (e.g. string|null) it returns the non-null type (e.g. string)
6868 // and for compound types (e.g. int|string) it throws an exception because both types
6969 // can be considered the main one, so there's no way to pick one
7070 $baseType = $type->getBaseType();
7171
7272 // for collections, it returns the type of the item used as the key;
73- // in this example, the collection is a list, so it returns and "int" Type instance
73+ // in this example, the collection is a list, so it returns an "int" Type instance
7474 $keyType = $type->getCollectionKeyType();
7575
7676 // you can chain the utility methods (e.g. to introspect the values of the collection)
You can’t perform that action at this time.
0 commit comments