mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 14:58:42 +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();
|
return $this->node[$name] ?? new NullFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function add(FileInterface $file)
|
public function add(FileAbstract $file)
|
||||||
{
|
{
|
||||||
$this->count += $file->getCount();
|
$this->count += $file->getCount();
|
||||||
$this->size += $file->getSize();
|
$this->size += $file->getSize();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user