Skip to content

Commit 5819ad2

Browse files
committed
minor #20394 [TypeInfo] remove documentation about no longer existing getBaseType() method (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- [TypeInfo] remove documentation about no longer existing getBaseType() method related to #20389 Commits ------- 8b9ca6f remove documentation about no longer existing getBaseType() method
2 parents 0394ce9 + 8b9ca6f commit 5819ad2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

components/type_info.rst

-6
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ based on reflection or a simple string::
5858

5959
// Type instances have several helper methods
6060

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-
6761
// for collections, it returns the type of the item used as the key;
6862
// in this example, the collection is a list, so it returns an "int" Type instance
6963
$keyType = $type->getCollectionKeyType();

0 commit comments

Comments
 (0)