mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Type fix
This commit is contained in:
parent
7769053826
commit
184e839899
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user