Skip to content

Commit

Permalink
Passing null to preg_match is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood committed May 7, 2024
1 parent 6cd74f0 commit cdacf2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/regex_validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private function validate_syntax() {
if (!is_null($this->error)) {
return;
}
if (@preg_match($this->regex, null) === false) {
if (@preg_match($this->regex, '') === false) {
$this->error = 'malformed';
}
}
Expand Down

0 comments on commit cdacf2a

Please sign in to comment.