mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-27 17:50:06 +00:00
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:
parent
f449c209b8
commit
52af61330f
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue