From: Michael Wallner Date: Mon, 30 Mar 2015 09:31:26 +0000 (+0200) Subject: fix basic source dir X-Git-Tag: v3.0.0~4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=3abb7257b440bce5627973788204ac81db66918c;p=pharext%2Fpharext fix basic source dir --- diff --git a/bin/pharext b/bin/pharext index e8bf5a6..9e1cff6 100755 Binary files a/bin/pharext and b/bin/pharext differ diff --git a/src/pharext/SourceDir/Basic.php b/src/pharext/SourceDir/Basic.php index 5d44941..7decdc6 100644 --- a/src/pharext/SourceDir/Basic.php +++ b/src/pharext/SourceDir/Basic.php @@ -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; } } }