fix: type

This commit is contained in:
origami11@yandex.ru 2024-12-12 12:12:00 +03:00
parent e5e0b6735f
commit 1d22953f68

View file

@ -25,13 +25,12 @@ class Time extends AbstractRule
public function isValid(Collection $container, $status = null) public function isValid(Collection $container, $status = null)
{ {
/** @var array[string]|null */ /** @var list<string> */
$tmp = explode($this->split, $container->get($this->field), 2); $tmp = explode($this->split, $container->get($this->field), 2);
if ($tmp) {
if (self::checktime ((int)$tmp[0], (int)$tmp[1])) { if (self::checktime ((int)$tmp[0], (int)$tmp[1])) {
return true; return true;
} }
}
return false; return false;
} }
} }