fix: phpstan level=6

This commit is contained in:
origami11@yandex.ru 2025-10-06 12:49:36 +03:00
parent acbf2c847d
commit 48269bd424
41 changed files with 324 additions and 347 deletions

View file

@ -6,16 +6,16 @@ use ctiso\Validator\Rule\AbstractRule,
class Notnull extends AbstractRule
{
function skipEmpty() {
function skipEmpty(): bool {
return false;
}
public function getErrorMsg()
{
public function getErrorMsg(): string
{
return "Поле не должно быть пустым";
}
public function isValid(Collection $container, $status = null)
public function isValid(Collection $container, $status = null): bool
{
$data = $container->get($this->field);
if (is_array($data)) {