Skip to content

[6.x] Evaluation incorrect, returning false for 1 #58

@jos-zz

Description

@jos-zz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions