intelephense

1.14.41.16.1
lib/stub/SPL/SPL.php
lib/stub/SPL/SPL.php
+4−1
Index: package/lib/stub/SPL/SPL.php
===================================================================
--- package/lib/stub/SPL/SPL.php
+++ package/lib/stub/SPL/SPL.php
@@ -636,8 +636,11 @@
 
 /**
  * The Seekable iterator.
  * @link https://php.net/manual/en/class.seekableiterator.php
+ * @template TKey
+ * @template-covariant TValue
+ * @template-extends Iterator<TKey, TValue>
  */
 interface SeekableIterator extends Iterator
 {
     /**
@@ -1379,9 +1382,9 @@
      * @param int $cachingIteratorFlags [optional] Flags to affect the behavior of the {@see RecursiveCachingIterator} used internally.
      * @param int $mode [optional] Flags to affect the behavior of the {@see RecursiveIteratorIterator} used internally.
      */
     public function __construct(
-        $iterator,
+        #[LanguageLevelTypeAware(['8.5' => 'RecursiveIterator|IteratorAggregate'], default: '')] $iterator,
         #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = self::BYPASS_KEY,
         #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $cachingIteratorFlags = CachingIterator::CATCH_GET_CHILD,
         #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $mode = RecursiveIteratorIterator::SELF_FIRST
     ) {}