1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00

Fix iteration over weakmaps

This commit is contained in:
Daniil Gentili 2023-12-08 12:31:42 +01:00
parent 0e43c441d0
commit f980689d97

View File

@ -492,6 +492,16 @@ final class WeakMap implements ArrayAccess, Countable, IteratorAggregate, Traver
* @return void * @return void
*/ */
public function offsetUnset($offset) {} public function offsetUnset($offset) {}
/**
* Create a new iterator from an ArrayObject instance
* @link http://php.net/manual/en/arrayobject.getiterator.php
*
* @return \Traversable<TKey, TValue> An iterator from an ArrayObject.
*
* @since 5.0.0
*/
public function getIterator() { }
} }
class mysqli class mysqli