Skip to content

Deprecated "TypeError: Unsupported operand types: array + null" following missing entries in resources/currency/ json files #94

Open
@bricebou

Description

@bricebou

Hello,

With PHPUnit, I'm getting a depreciation notice "TypeError: Unsupported operand types: array + null" from vendor/commerceguys/intl/src/Currency/CurrencyRepository.php:94.

Before, we are getting the following warning

Warning: Undefined array key "VED" in /var/www/html/plugins/intl/vendor/commerceguys/intl/src/Currency/CurrencyRepository.php on line 94

If I edit the resources/currency/fr.json file adding the VED entry (and the UYW one, triggering another warning), the warning and the deprecation disappear.

I've understood from #91 (comment) that these entries should be excluded, but:

  • the VED entry appears in some json, for example resources/currency/hi-Latn.json;
  • how to fix the deprecation ?

Thanks in advance !

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