fix basic source dir
authorMichael Wallner <mike@php.net>
Mon, 30 Mar 2015 09:31:26 +0000 (11:31 +0200)
committerMichael Wallner <mike@php.net>
Mon, 30 Mar 2015 09:31:26 +0000 (11:31 +0200)
bin/pharext
src/pharext/SourceDir/Basic.php

index e8bf5a63c41c3f48a26fa321ef5af86572b0efef..9e1cff6f08faf1930766d458d9aa252942f7dfdd 100755 (executable)
Binary files a/bin/pharext and b/bin/pharext differ
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;
                        }
                }
        }