Problem/Motivation

From Drupal 11.4.0, Constraint plugins must use named arguments instead of an options array. This affects the implementation of ComplexData in this module.

When doing a feeds import for a JSON field, I get this error:

Adding the "ComplexData" constraint with options missing the "properties" key is deprecated in drupal:11.4.0 and will
not be supported in drupal:12.0.0. See https://www.drupal.org/node/3554746 at /var/www/html/web/core/lib/Drupal/Core
/Field/FieldConfigBase.php:563

Issue fork json_field-3598615

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ptmkenny created an issue. See original summary.

ptmkenny’s picture

Issue summary: View changes
ptmkenny’s picture

Status: Active » Needs work

It's not as simple as the MR fix :(

ptmkenny’s picture

Status: Needs work » Postponed

I now think this is a core issue: #3599189: @trigger_error() for the ComplexData deprecations omits E_USER_DEPRECATED, so E_USER_NOTICE is emitted

I am postponing for now and will update based on core issue status.

ptmkenny’s picture

Status: Postponed » Closed (works as designed)

This was in fact upstream and has been committed to core, so I'm closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.