|
$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.