Merge branch '2.8' into 3.1
* 2.8: added a comment about a workaround [Finder] no PHP warning on empty directory iteration fixed CS
This commit is contained in:
commit
ad7bc0322a
@ -137,6 +137,11 @@ class RecursiveDirectoryIterator extends \RecursiveDirectoryIterator
|
|||||||
return $this->rewindable;
|
return $this->rewindable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// workaround for an HHVM bug, should be removed when https://github.com/facebook/hhvm/issues/7281 is fixed
|
||||||
|
if ('' === $this->getPath()) {
|
||||||
|
return $this->rewindable = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (false !== $stream = @opendir($this->getPath())) {
|
if (false !== $stream = @opendir($this->getPath())) {
|
||||||
$infos = stream_get_meta_data($stream);
|
$infos = stream_get_meta_data($stream);
|
||||||
closedir($stream);
|
closedir($stream);
|
||||||
|
Reference in New Issue
Block a user