|
$plural = is_numeric($evaluatedPlural) ? (int) $evaluatedPlural : 0; |
$plural = is_numeric($evaluatedPlural) ? (int) $evaluatedPlural : 0;
$evaluatedPlural should be int 1 but instead it's true coerced to 1, therefore is_numeric(true) returns false and the plural form fails to be correctly detected.
Using PHP 8.2.
motranslator/src/Translator.php
Line 254 in cb7c94b
$plural = is_numeric($evaluatedPlural) ? (int) $evaluatedPlural : 0;$evaluatedPluralshould be int1but instead it'struecoerced to 1, thereforeis_numeric(true)returnsfalseand the plural form fails to be correctly detected.Using PHP 8.2.