Fatal error: CurrencyCode::$message must be string

Created on 19 September 2025, about 2 months ago

Problem/Motivation

drush updb results in

Fatal error: Type of Drupal\currency\Plugin\Validation\Constraint\CurrencyCode::$message must be string (as in class Symfony\Component\Validator\Constraints\Regex) in /var/ww  
  w/html/docroot/modules/contrib/currency/src/Plugin/Validation/Constraint/CurrencyCode.php on line 16

Steps to reproduce

Use Drupal 11.

Proposed resolution

Update CurrencyCode and CurrencyNumber so they conform to Regex

🐛 Bug report
Status

Active

Version

3.4

Component

Code

Created by

🇬🇧United Kingdom dahousecat

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024