Skip to content

Commit

Permalink
Address Scrutinizer issue regarding preg_match return type.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Dec 1, 2016
1 parent 261d642 commit d1d47eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/AbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function applyFocusPatterns($focusPattern, $skipPattern = null)
if ($focusPattern === null) {
$this->focused = true;
} else {
$this->focused = preg_match($focusPattern, $title);
$this->focused = (bool) preg_match($focusPattern, $title);
}
}

Expand Down

0 comments on commit d1d47eb

Please sign in to comment.