Skip to content

|number with string gives error #390

Description

@ivomans

When I try to use the Number filter according to the documentation with a string {1234.5|number: '#,##0.00'} it gives an error:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: number_format(): Argument #2 ($decimals) must be of type int, string given

BTW: {1234.5|number: 2} is working fine.

Version: v3.0.20

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions