@ -35,7 +35,7 @@ class RegexValidator implements IValidator {
* @inheritDoc
*/
public function validate (mixed $value): bool {
return preg_match($this->pattern, $value, $this->matches) === 1;
return preg_match($this->pattern, $value ?? '', $this->matches) === 1;
}
/**