X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fpharext%2FSourceDir%2FBasic.php;fp=src%2Fpharext%2FSourceDir%2FBasic.php;h=7decdc6781f764f29ea8b3548edb6d4c2631360b;hb=3abb7257b440bce5627973788204ac81db66918c;hp=5d44941edefc81cc8def3fe6441c2631cd346117;hpb=3d815714b67ce0ab66c9e075edf8d0afb82d33ad;p=pharext%2Fpharext 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; } } }