diff --git a/System/File/Directory.php b/System/File/Directory.php index 6e409b5ee..ad6747514 100644 --- a/System/File/Directory.php +++ b/System/File/Directory.php @@ -71,12 +71,12 @@ class Directory extends FileAbstract implements \Iterator, \ArrayAccess } } - public function get(string $name) : FileInterface + public function get(string $name) : FileAbstract { return $this->node[$name] ?? new NullFile(); } - public function add(FileInterface $file) + public function add(FileAbstract $file) { $this->count += $file->getCount(); $this->size += $file->getSize();