Skip to content

Commit f99db3a

Browse files
Al2Klimovlippserd
andauthored
Update src/RegexMatchValidator.php
Co-authored-by: Eric Lippmann <eric.lippmann@icinga.com>
1 parent 4ce03cd commit f99db3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/RegexMatchValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function isValid($value): bool
4747
$this->clearMessages();
4848

4949
if (! preg_match($this->pattern, $value)) {
50-
if (empty($this->notMatchMessage)) {
50+
if ($this->notMatchMessage === null) {
5151
$this->addMessage(sprintf(
5252
$this->translate("'%s' does not match against pattern '%s'"),
5353
$value,

0 commit comments

Comments
 (0)