fix: phpstan level=3

This commit is contained in:
origami11@yandex.ru 2024-01-22 14:00:52 +03:00
parent bbc9d0e7fe
commit f594611656
6 changed files with 8 additions and 6 deletions

View file

@ -91,7 +91,7 @@ class Validator
if ($rule->skipEmpty()) {
$data = $container->get($rule->field);
if (!is_array($data)) {
$value = trim($data);
$value = trim($data ?: '');
return $value == '';
}
}