From 184e8398994e3ad604f3e078937f63acc3d20aa5 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 27 Mar 2016 17:14:57 +0200 Subject: [PATCH] Type fix --- System/File/Directory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();