Fixed $vCallback comment and removed unused return value.
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 8 Mar 2013 17:49:13 +0000 (09:49 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 8 Mar 2013 17:49:13 +0000 (09:49 -0800)
Change-Id: If438d83e1b43c110b3c23e8d0a7705fa0795049f

includes/MappedIterator.php

index 243557e..b4376f4 100644 (file)
@@ -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
        }
 
        /**