Resolve Declaration *Collection::append should be compatible with Collection::append

This commit is contained in:
djmaze 2020-03-20 15:37:55 +01:00
parent 559ebe0f28
commit 5af6e30b8f
8 changed files with 19 additions and 11 deletions

View file

@ -39,8 +39,9 @@ class HeaderCollection extends \MailSo\Base\Collection
return new self($sRawHeaders, $bStoreRawHeaders);
}
public function append(Header $oHeader, bool $bToTop = false) : void
public function append($oHeader, bool $bToTop = false) : void
{
assert($oHeader instanceof Header);
parent::append($oHeader, $bToTop);
}