fix: type
This commit is contained in:
parent
e5e0b6735f
commit
1d22953f68
1 changed files with 6 additions and 7 deletions
|
|
@ -25,13 +25,12 @@ class Time extends AbstractRule
|
|||
|
||||
public function isValid(Collection $container, $status = null)
|
||||
{
|
||||
/** @var array[string]|null */
|
||||
/** @var list<string> */
|
||||
$tmp = explode($this->split, $container->get($this->field), 2);
|
||||
if ($tmp) {
|
||||
if (self::checktime ((int)$tmp[0], (int)$tmp[1])) {
|
||||
return true;
|
||||
}
|
||||
if (self::checktime ((int)$tmp[0], (int)$tmp[1])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue