Skip to content

Commit c40986f

Browse files
committed
refactor: more !== 1 compare on preg_match()
1 parent a9b0261 commit c40986f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/View/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ public function shouldAddEscaping(string $key)
613613
$escape = false;
614614
}
615615
// If no `esc` filter is found, then we'll need to add one.
616-
elseif (in_array(preg_match('/\s+esc/u', $key), [0, false], true)) {
616+
elseif (preg_match('/\s+esc/u', $key) !== 1) {
617617
$escape = 'html';
618618
}
619619

0 commit comments

Comments
 (0)