From 405c69da067f1c33f618d27e9cacb61210feb446 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 8 Mar 2013 09:49:13 -0800 Subject: [PATCH] Fixed $vCallback comment and removed unused return value. Change-Id: If438d83e1b43c110b3c23e8d0a7705fa0795049f --- includes/MappedIterator.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/MappedIterator.php b/includes/MappedIterator.php index 243557ec57..b4376f44c7 100644 --- a/includes/MappedIterator.php +++ b/includes/MappedIterator.php @@ -39,7 +39,7 @@ class MappedIterator implements Iterator { * The keys of the base iterator are reused verbatim. * * @param Iterator|Array $iter - * @param Closure $callback + * @param Closure $vCallback * @throws MWException */ public function __construct( $iter, Closure $vCallback ) { @@ -81,11 +81,10 @@ class MappedIterator implements Iterator { } /** - * @return Mixed|null Returns null if out of range + * @return void */ public function next() { $this->baseIterator->next(); - return $this->current(); // make sure callback is applied } /** -- 2.20.1