@@ -96,7 +96,7 @@ |
||
96 | 96 | * @param string|int $index |
97 | 97 | * @param ?TChild $valueIfEmpty If the index does not exist it will be created with this value and returned. |
98 | 98 | * |
99 | - * @return TChild The contents of the element with the given index and the provided default if the key |
|
99 | + * @return T|null The contents of the element with the given index and the provided default if the key |
|
100 | 100 | * doesn't exist. |
101 | 101 | * |
102 | 102 | * @psalm-return ($valueIfEmpty is null ? ?TChild: TChild) |