Add explicit parentheses around mixed boolean operator

Mixing different binary boolean operators within an expression
without using parentheses to clarify precedence is not allowed (T358966)

Change-Id: I6d3edc5f8dddcfc6bd6a7d2a8f2ad9467372908d
This commit is contained in:
Umherirrender 2024-03-23 00:59:35 +01:00
parent f449c209b8
commit 52af61330f

View file

@ -897,7 +897,7 @@ class UstringLibrary extends LibraryBase {
$realCallback = $cb;
$cb = static function ( $m ) use ( $realCallback, &$skippedMatches, &$maxMatches ) {
$c = ord( $m['phpBug53823'] );
if ( $c >= 0x80 && $c <= 0xbf || $maxMatches <= 0 ) {
if ( ( $c >= 0x80 && $c <= 0xbf ) || $maxMatches <= 0 ) {
$skippedMatches++;
return $m[0];
} else {