"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "includes/libs/MappedIterator.php" between
mediawiki-1.31.1.tar.gz and mediawiki-1.32.0.tar.gz

About: MediaWiki is a wiki engine (the collaborative editing software that runs for e.g. Wikipedia, the free encyclopedia).

MappedIterator.php  (mediawiki-1.31.1):MappedIterator.php  (mediawiki-1.32.0)
skipping to change at line 63 skipping to change at line 63
public function __construct( $iter, $vCallback, array $options = [] ) { public function __construct( $iter, $vCallback, array $options = [] ) {
if ( is_array( $iter ) ) { if ( is_array( $iter ) ) {
$baseIterator = new ArrayIterator( $iter ); $baseIterator = new ArrayIterator( $iter );
} elseif ( $iter instanceof Iterator ) { } elseif ( $iter instanceof Iterator ) {
$baseIterator = $iter; $baseIterator = $iter;
} else { } else {
throw new UnexpectedValueException( "Invalid base iterato r provided." ); throw new UnexpectedValueException( "Invalid base iterato r provided." );
} }
parent::__construct( $baseIterator ); parent::__construct( $baseIterator );
$this->vCallback = $vCallback; $this->vCallback = $vCallback;
$this->aCallback = isset( $options['accept'] ) ? $options['accept '] : null; $this->aCallback = $options['accept'] ?? null;
} }
public function next() { public function next() {
$this->cache = []; $this->cache = [];
parent::next(); parent::next();
} }
public function rewind() { public function rewind() {
$this->rewound = true; $this->rewound = true;
$this->cache = []; $this->cache = [];
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)