intelephense
1.14.41.16.1
lib/stub/SPL/SPL_f.phplib/stub/SPL/SPL_f.php+4−2
Index: package/lib/stub/SPL/SPL_f.php
===================================================================
--- package/lib/stub/SPL/SPL_f.php
+++ package/lib/stub/SPL/SPL_f.php
@@ -138,15 +138,17 @@
/**
* Copy the iterator into an array
* @link https://php.net/manual/en/function.iterator-to-array.php
- * @param Traversable $iterator <p>
+ * @template TKey
+ * @template TValue
+ * @param Traversable<TKey, TValue> $iterator <p>
* The iterator being copied.
* </p>
* @param bool $preserve_keys [optional] <p>
* Whether to use the iterator element keys as index.
* </p>
- * @return array An array containing the elements of the iterator.
+ * @return array<TKey, TValue>|TValue[] An array containing the elements of the iterator.
*/
function iterator_to_array(#[LanguageLevelTypeAware(['8.2' => 'Traversable|array'], default: 'Traversable')] $iterator, bool $preserve_keys = true): array {}
/**