fix null
This commit is contained in:
parent
7b6e527b27
commit
53547f8677
|
@ -34,7 +34,7 @@ class Event extends Validator
|
||||||
public function isValid($value): bool
|
public function isValid($value): bool
|
||||||
{
|
{
|
||||||
$events = Config::getParam('events', []);
|
$events = Config::getParam('events', []);
|
||||||
$parts = \explode('.', $value);
|
$parts = \explode('.', $value ?? '');
|
||||||
$count = \count($parts);
|
$count = \count($parts);
|
||||||
|
|
||||||
if ($count < 2 || $count > 7) {
|
if ($count < 2 || $count > 7) {
|
||||||
|
|
Loading…
Reference in a new issue