Fix validation error on schema for allowed_countries and allowed_types

Created on 21 July 2023, over 1 year ago

Problem/Motivation

When implementing testing for the module the default test gave an error:

Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for field.field.node.article.field_phone_number with the following errors: field.field.node.article.field_phone_number:settings.allowed_countries variable type is NULL but applied schema class is Drupal\Core\Config\Schema\Sequence, field.field.node.article.field_phone_number:settings.allowed_types variable type is NULL but applied schema class is Drupal\Core\Config\Schema\Sequence

Steps to reproduce

Not yet as tests are on its way.

Proposed resolution

Change the defaultFieldSettings allowed_countries and allowed_types to an array instead of NULL.

Remaining tasks

Create patch
Review patch

User interface changes

-

API changes

-

Data model changes

-

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium tim-diels Belgium 🇧🇪

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

Comments & Activities

Production build 0.71.5 2024