Undefined constant libphonenumber\PhoneNumberUtil::META_DATA_FILE_PREFIX

Created on 19 July 2023, over 1 year ago
Updated 3 August 2023, over 1 year ago

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.

🐛 Bug report
Status

Fixed

Version

9.1

Component

Code

Created by

🇨🇦Canada noah

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024