Use named arguments for FunctionCall constraints

Created on 31 December 2025, 19 days ago

Problem/Motivation

Drupal 11.3 requires Symfony 7.4.

In Symfony 7.4, passing an array to constraint constructors is deprecated; we must use named arguments instead. See #[3522497].

Steps to reproduce

Ask the chatbot, or the agent explorer, to create a content type or a vocabulary. You get an error like "Unknown named parameter $value".

Proposed resolution

Use named arguments on constraint definitions in FunctionCall.

From:

constraints: ['Regex' => '/^[a-zA-Z0-9_]+$/'],

to:

constraints: ['Regex' => ['pattern' => '/^[a-zA-Z0-9_]+$/']],

Remaining tasks

Review the MR.

User interface changes

None.

API changes

None.

Data model changes

None.

📌 Task
Status

Active

Version

1.3

Component

Code

Created by

🇮🇹Italy lussoluca Italy

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