dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Permit case independent unit test directories"
[lhc/web/wiklou.git]
/
includes
/
libs
/
MappedIterator.php
diff --git
a/includes/libs/MappedIterator.php
b/includes/libs/MappedIterator.php
index
d60af34
..
9d53a86
100644
(file)
--- a/
includes/libs/MappedIterator.php
+++ b/
includes/libs/MappedIterator.php
@@
-45,9
+45,10
@@
class MappedIterator extends FilterIterator {
* the base iterator (post-callback) and will return true if that value should be
* included in iteration of the MappedIterator (otherwise it will be filtered out).
*
* the base iterator (post-callback) and will return true if that value should be
* included in iteration of the MappedIterator (otherwise it will be filtered out).
*
- * @param Iterator|
A
rray $iter
+ * @param Iterator|
a
rray $iter
* @param callable $vCallback Value transformation callback
* @param array $options Options map (includes "accept") (since 1.22)
* @param callable $vCallback Value transformation callback
* @param array $options Options map (includes "accept") (since 1.22)
+ * @phan-param array{accept?:callable} $options
* @throws UnexpectedValueException
*/
public function __construct( $iter, $vCallback, array $options = [] ) {
* @throws UnexpectedValueException
*/
public function __construct( $iter, $vCallback, array $options = [] ) {
@@
-60,7
+61,8
@@
class MappedIterator extends FilterIterator {
}
parent::__construct( $baseIterator );
$this->vCallback = $vCallback;
}
parent::__construct( $baseIterator );
$this->vCallback = $vCallback;
- $this->aCallback = isset( $options['accept'] ) ? $options['accept'] : null;
+ // @phan-suppress-next-line PhanTypeInvalidDimOffset
+ $this->aCallback = $options['accept'] ?? null;
}
public function next() {
}
public function next() {