mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Resolve Declaration *Collection::append should be compatible with Collection::append
This commit is contained in:
parent
559ebe0f28
commit
5af6e30b8f
8 changed files with 19 additions and 11 deletions
|
|
@ -27,9 +27,10 @@ class AttachmentCollection extends \MailSo\Base\Collection
|
|||
return new self();
|
||||
}
|
||||
|
||||
public function append(Attachment $oFolder, bool $bToTop = false) : void
|
||||
public function append($oAttachment, bool $bToTop = false) : void
|
||||
{
|
||||
parent::append($oFolder, $bToTop);
|
||||
assert($oAttachment instanceof Attachment);
|
||||
parent::append($oAttachment, $bToTop);
|
||||
}
|
||||
|
||||
public function InlineCount() : int
|
||||
|
|
|
|||
|
|
@ -58,8 +58,9 @@ class FolderCollection extends \MailSo\Base\Collection
|
|||
return new self();
|
||||
}
|
||||
|
||||
public function append(Folder $oFolder, bool $bToTop = false) : void
|
||||
public function append($oFolder, bool $bToTop = false) : void
|
||||
{
|
||||
assert($oFolder instanceof Folder);
|
||||
parent::append($oFolder, $bToTop);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -89,8 +89,9 @@ class MessageCollection extends \MailSo\Base\Collection
|
|||
return new self();
|
||||
}
|
||||
|
||||
public function append(Message $oMessage, bool $bToTop = false) : void
|
||||
public function append($oMessage, bool $bToTop = false) : void
|
||||
{
|
||||
assert($oMessage instanceof Message);
|
||||
parent::append($oMessage, $bToTop);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue