Skip to content

Intl: Invalid Currencies::getNumericCode() for 'XCG' (Caribbean guilder) #60041

Open
@laurentmuller

Description

@laurentmuller

Symfony version affected

7.2.0

Description

I try to get numeric code for the 'XCG' (Caribbean guilder) value. But the value is not found.

How to reproduce

With the following code:

if (Currencies::exists('XCG')) { // true
   $numericCode = Currencies::getNumericCode('XCG') // error!
}

An error is raised:

Couldn't read the indices [Alpha3ToNumeric][XCG] for the locale "meta"
in D:\Github\calculation\vendor\symfony\intl/Resources/data/currencies".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions