Upgrade PHPStan level to 4

I had to add some ignore errors until phpstan/phpstan#1482 is resolved

[MAILPOET-1915]
This commit is contained in:
Pavel Dohnal
2019-03-20 15:04:45 +01:00
committed by M. Shull
parent 7d6f69ec1d
commit 21766421d5
11 changed files with 20 additions and 20 deletions

View File

@@ -80,9 +80,7 @@ abstract class ValidModel extends \Model {
$params = explode('|', $check);
$check = array_shift($params);
if ($this->_validator->executeOne($check, $value, $params)) {
$success = $success && true;
} else {
if (!$this->_validator->executeOne($check, $value, $params)) {
$this->addValidationError($v['message'], $field);
$success = false;
}