Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295035

Passing a $options array to constraint constructors is deprecated, use named arguments instead

$
0
0

Problem/Motivation

New deprecation in Symfony 7.3 via #3522353: Update Composer dependencies for 11.2.0

Since symfony/validator 7.3: Passing an array of options to configure the "..." constraint is deprecated, use named arguments instead.

Steps to reproduce

Proposed resolution

Use named arguments instead for Symfony constraints.

Add named argument support and a deprecation/BC layer for options arrays to custom Drupal constraints.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 295035

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>