Skip to content

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

Open

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.

Activity

  1. williamdes commented on Nov 19, 2025

    @williamdes
    Member

    @MauricioFauth 298752e
    Only affected versions are 6.x

  2. added theissue type on Nov 19, 2025
  3. changed the title [-]Evaluation incorrect, returning false for 1[/-] [+][6.x] Evaluation incorrect, returning false for 1[/+] on Nov 19, 2025
  4. williamdes commented on Apr 1, 2026

    @williamdes
    Member

    Could you open a pull-request to 6.x @jos-zz ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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