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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user