some extra type checks

This commit is contained in:
Robin Appelman 2019-03-11 17:16:21 +01:00
commit 782e09ec62
8 changed files with 24 additions and 13 deletions

View file

@ -61,7 +61,7 @@ class IteratorDirectory extends WrapperHandler implements Directory {
}
/**
* @return string
* @return string|bool
*/
public function dir_readdir() {
if ($this->iterator->valid()) {
@ -92,7 +92,7 @@ class IteratorDirectory extends WrapperHandler implements Directory {
* Creates a directory handle from the provided array or iterator
*
* @param \Iterator | array $source
* @return resource
* @return resource|bool
*
* @throws \BadMethodCallException
*/