We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e921ebb commit 05e9e37Copy full SHA for 05e9e37
1 file changed
src/Validator/DocumentNumberAbstract.php
@@ -54,8 +54,9 @@ abstract class DocumentNumberAbstract extends AbstractValidator {
54
55
public function __construct($options = null) {
56
parent::__construct($options);
57
- if (array_key_exists('valid_if_empty', $options))
+ if (is_array($options) && array_key_exists('valid_if_empty', $options)) {
58
$this->validIfEmpty = $options['valid_if_empty'];
59
+ }
60
}
61
62
/**
0 commit comments