Problem/Motivation

An update to the dependency at https://github.com/giggsey/libphonenumber-for-php has caused this module to start consistently throwing a fatal error, because the module references a constant that evidently no longer exists.

Steps to reproduce

Install the module and its dependencies.

Proposed resolution

I'm not sure what “PhoneNumberUtil::META_DATA_FILE_PREFIX” ever referenced, but all of the example calls to PhoneNumberUtil::getInstance() in the libphonenumber-for-php examples have no parameter, so I'm hoping it's safe to just remove the undefined constant wherever it appears.

Remaining tasks

Create a patch.

Comments

noah created an issue. See original summary.

noah’s picture

Status: Active » Needs review
StatusFileSize
new2.61 KB

Patch attached.

  • omahm committed c4f25cf2 on 8.x-1.x
    Issue #3375657 Undefined constant libphonenumber\PhoneNumberUtil::...

  • omahm committed cafd1def on development
    Issue #3375657 Undefined constant libphonenumber\PhoneNumberUtil::...
omahm’s picture

Status: Needs review » Fixed
omahm’s picture

Fixed for both release, thanks Noah.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.