You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice: Array to string conversion instead of informative error message when configuration with non-existent Doctrine connection is found in RegisterEventListenersAndSubscribersPass #27811
Description
There is a small bug in an exception thrown by RegisterEventListenersAndSubscribersPass when a Doctrine connection that doesn't exist is referenced in configuration. Instead of getting the helpful exception message:
The Doctrine connection "root" referenced in service "stof_doctrine_extensions.listener.sluggable" does not exist. Available connections names: default
You instead get
Notice: Array to string conversion
How to reproduce
I was able to reproduce this by having the following configuration:
Possible Solution
The variable $taggedSubscriber here is actually an array, with the name of the service as the first member. Changing the reference to $taggedSubscriber[0] should fix this.