Fix phpstan errors from new version

[MAILPOET-3725]
This commit is contained in:
Jan Lysý
2021-08-05 12:40:18 +02:00
committed by Veljko V
parent 3ede4366b6
commit a9621875bd
3 changed files with 8 additions and 5 deletions

View File

@@ -179,7 +179,7 @@ class Model extends \MailPoetVendor\Sudzy\ValidModel {
$model = $model->where($field, $value);
}
}
if ($model) $model = $model->findOne();
if ($model !== false) $model = $model->findOne();
}
if ($model === false) {