Skip to content

Commit

Permalink
Fix iteration over weakmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Dec 8, 2023
1 parent 0e43c44 commit f980689
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions stubs/CoreGenericClasses.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,16 @@ final class WeakMap implements ArrayAccess, Countable, IteratorAggregate, Traver
* @return void
*/
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
Expand Down

0 comments on commit f980689

Please sign in to comment.