File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -139,13 +139,15 @@ function spl_object_hash(object $object): string {}
139
139
/**
140
140
* Copy the iterator into an array
141
141
* @link https://php.net/manual/en/function.iterator-to-array.php
142
- * @param Traversable $iterator <p>
142
+ * @template TKey
143
+ * @template TValue
144
+ * @param Traversable<TKey, TValue> $iterator <p>
143
145
* The iterator being copied.
144
146
* </p>
145
147
* @param bool $preserve_keys [optional] <p>
146
148
* Whether to use the iterator element keys as index.
147
149
* </p>
148
- * @return array An array containing the elements of the iterator.
150
+ * @return array<TKey, TValue>|TValue[] An array containing the elements of the iterator.
149
151
*/
150
152
function iterator_to_array (#[LanguageLevelTypeAware(['8.2 ' => 'Traversable|array ' ], default: 'Traversable ' )] $ iterator , bool $ preserve_keys = true ): array {}
151
153
You can’t perform that action at this time.
0 commit comments