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
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:
- complex_data_properties
changes, plain diff MR !60
Comments
Comment #3
ptmkenny commentedComment #4
ptmkenny commentedIt's not as simple as the MR fix :(
Comment #5
ptmkenny commentedI 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.
Comment #6
ptmkenny commentedThis was in fact upstream and has been committed to core, so I'm closing.