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.
Comments
Comment #2
jayelless commentedI experienced this problem when installing the contrib module plugin. Plugin is required for currency and payment.
Comment #3
socialnicheguru commentedComment #4
socialnicheguru commentedAdding this here for reference.
This might fix it:
https://github.com/symfony/symfony/pull/13851
patch:https://patch-diff.githubusercontent.com/raw/symfony/symfony/pull/13851....
Comment #5
socialnicheguru commentedComment #6
socialnicheguru commentedI get this error in symfony if the plugin module is not enabled.
Comment #7
ronaldtebrake commentedhttps://github.com/goalgorilla/open_social/pull/2223
Comment #8
ronaldtebrake commentedWill be in 9.x / 10.0.x and 10.1