Problem/Motivation

Symfony\Component\Validator\Exception\UnexpectedTypeException: Expected argument of type "array or Traversable and ArrayAccess", "string" given in
social-9.1/vendor/symfony/validator/Constraints/CollectionValidator.php:37

grep -n "\[0-1\]\+" -d recurse p*/
profiles/contrib/social/modules/social_features/social_event/modules/social_event_invite/social_event_invite.routing.yml:58: accept_decline: '[0-1]+'
profiles/contrib/social/modules/social_features/social_event/social_event.routing.yml:28: approve: '[0-1]+'

is '[0-1]+' no longer accepted a string?

Drupal 8.8.9 was installed on my composer update

i was just installing additional modules using Drush.

I had to placce a simple print_r($value) ini the collectionValidator.php file.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

SocialNicheGuru created an issue. See original summary.

jayelless’s picture

I experienced this problem when installing the contrib module plugin. Plugin is required for currency and payment.

socialnicheguru’s picture

Title: Symfony\Component\Validator\Exception\UnexpectedTypeException: Expected argument of type "array or Traversable and ArrayAccess", "string" » OpenSocial syntax in social_event [0-1]+ gives error when plugin module is enablled
socialnicheguru’s picture

socialnicheguru’s picture

Title: OpenSocial syntax in social_event [0-1]+ gives error when plugin module is enablled » OpenSocial syntax in social_event [0-1]+ gives error when plugin module is enabled
socialnicheguru’s picture

I get this error in symfony if the plugin module is not enabled.

ronaldtebrake’s picture

ronaldtebrake’s picture

Status: Needs review » Fixed

Will be in 9.x / 10.0.x and 10.1

Status: Fixed » Closed (fixed)

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