mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-04 00:54:08 +02:00
some extra type checks
This commit is contained in:
parent
bd77a24550
commit
782e09ec62
8 changed files with 24 additions and 13 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue