Validation constraint "type" must be an array of types

Created on 14 March 2025, 20 days ago

Overview

I just made XB part of my default install and e2e tests failed. That's due to code which called \Drupal\Core\Validation\ConstraintManager::getDefinitionsByType

It has

      if ($definition['type'] === FALSE || in_array($type, $definition['type'])) {
        $definitions[$plugin_id] = $definition;
      }

This failed since $haystack is a string in experience_builder_validation_constraint_alter

Proposed resolution

make `type` wrapped as array in experience_builder_validation_constraint_alter

User interface changes

πŸ› Bug report
Status

Active

Version

0.0

Component

Shape matching

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024