Fix other phpstan errors in lib

[MAILPOET-3146]
This commit is contained in:
Rostislav Wolny
2020-10-07 10:33:16 +02:00
committed by Veljko V
parent ab9130f845
commit bf7bd6d2d9
4 changed files with 16 additions and 8 deletions

View File

@ -222,6 +222,10 @@ class Model extends \MailPoetVendor\Sudzy\ValidModel {
}
}
/**
* @return static
* @phpstan-ignore-next-line Our Model has incompatible return type with parent
*/
public function save() {
$this->setTimestamp();
$this->newRecord = $this->isNew();
@ -387,7 +391,7 @@ class Model extends \MailPoetVendor\Sudzy\ValidModel {
public function __set($name, $value) {
$name = Helpers::camelCaseToUnderscore($name);
return parent::__set($name, $value);
parent::__set($name, $value);
}
public function __isset($name) {