Skip to content

Commit 49a7d3c

Browse files
authored
🤖 Automatic code style fixes
1 parent d5c102b commit 49a7d3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎cli.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ protected function getRegexps()
372372

373373
if ($skip) {
374374
$skipRE = '/' . $skip . '/';
375-
if (@preg_match($skipRE, null) === false) {
375+
if (@preg_match($skipRE, '') === false) {
376376
$this->error(preg_last_error_msg());
377377
$this->error('Invalid regular expression in $conf[\'skipRegex\']. Ignored.');
378378
$skipRE = '';
@@ -383,7 +383,7 @@ protected function getRegexps()
383383

384384
if ($match) {
385385
$matchRE = '/' . $match . '/';
386-
if (@preg_match($matchRE, null) === false) {
386+
if (@preg_match($matchRE, '') === false) {
387387
$this->error(preg_last_error_msg());
388388
$this->error('Invalid regular expression in $conf[\'matchRegex\']. Ignored.');
389389
$matchRE = '';

0 commit comments

Comments
 (0)