Problem/Motivation

When we use config inspector this fatal is triggerred

Symfony\Component\Validator\Exception\UnexpectedTypeException: Expected argument of type "array", "string" given in Drupal\Core\Validation\Plugin\Validation\Constraint\ValidKeysConstraintValidator->validate() (line 33 of core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraintValidator.php).

Steps to reproduce

Install the module
attach library
export config
install config inspector
go on config inspector page

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

musa.thomas created an issue. See original summary.

musa.thomas’s picture

Issue summary: View changes

jaypan made their first commit to this issue’s fork.

jaypan’s picture

Status: Active » Needs review

I discovered this is due to the schema definition being incorrect. The schema defined an array, when the actual value is a string.

lazzyvn’s picture

Status: Needs review » Fixed

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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.