From: Tim Düsterhus Date: Wed, 3 Feb 2021 10:02:25 +0000 (+0100) Subject: Add explicit parentheses around mixed boolean operators in I18nPlural X-Git-Tag: 5.4.0_Alpha_1~320 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1769731045e4e0053e5c4c91e7bdd26d565fa46a;p=GitHub%2FWoltLab%2FWCF.git Add explicit parentheses around mixed boolean operators in I18nPlural see #3926 --- diff --git a/wcfsetup/install/files/lib/system/language/I18nPlural.class.php b/wcfsetup/install/files/lib/system/language/I18nPlural.class.php index 485114a184..3211944631 100644 --- a/wcfsetup/install/files/lib/system/language/I18nPlural.class.php +++ b/wcfsetup/install/files/lib/system/language/I18nPlural.class.php @@ -382,7 +382,7 @@ class I18nPlural { $f = self::getF($n); - if ($f === 0 && $n % 10 === 1 && !($n % 100 === 11) || !($f === 0)) { + if (($f === 0 && $n % 10 === 1 && !($n % 100 === 11)) || !($f === 0)) { return self::PLURAL_ONE; } }