readdir may return false

The return type for dir_readdir() was incomplete
This commit is contained in:
Côme Chilliet 2022-12-13 10:17:57 +01:00 committed by GitHub
commit f4cf0eb13a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ class DirectoryWrapper extends Wrapper implements Directory {
} }
/** /**
* @return string * @return string|false
*/ */
public function dir_readdir() { public function dir_readdir() {
return readdir($this->source); return readdir($this->source);