fix basic source dir
[pharext/pharext] / src / pharext / SourceDir / Basic.php
index 5d44941edefc81cc8def3fe6441c2631cd346117..7decdc6781f764f29ea8b3548edb6d4c2631360b 100644 (file)
@@ -40,11 +40,10 @@ class Basic implements IteratorAggregate, SourceDir
                                FilesystemIterator::KEY_AS_PATHNAME |
                                FilesystemIterator::SKIP_DOTS);
                $rii = new RecursiveIteratorIterator($rdi,
-                               RecursiveIteratorIterator::CHILD_FIRST);
-               return $rii;
+                       RecursiveIteratorIterator::CHILD_FIRST);
                foreach ($rii as $path => $child) {
                        if (!$child->isDir()) {
-                               #yield $path;
+                               yield $path;
                        }
                }
        }