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
This causes problems with (at least) willdurand/BazingaJsTranslationBundle because they use a compiler pass that pulls the #3 argument and assumes it is an array then uses array_merge() with that arg.
How to reproduce
What I did was upgrade my working project from symfony 5.1.x to 5.2.0-BETA2 and ran my tests. It fails for the reason above. I know this is not a very reproducible bug and I don't have a better idea to made it reproducible.
Possible Solution
could \Symfony\Component\DependencyInjection\Argument\AbstractArgument be made iterable? not sure that would solve the problem though. Mabe have the default arg be an empty array instead? I don't know what the old collection argument type default value is.
Symfony version(s) affected: 5.2.0-BETA2
Description
new php configuration changes the #3 argument from
to
This causes problems with (at least) willdurand/BazingaJsTranslationBundle because they use a compiler pass that pulls the #3 argument and assumes it is an array then uses
array_merge()
with that arg.How to reproduce
What I did was upgrade my working project from symfony 5.1.x to 5.2.0-BETA2 and ran my tests. It fails for the reason above. I know this is not a very reproducible bug and I don't have a better idea to made it reproducible.
Possible Solution
could
\Symfony\Component\DependencyInjection\Argument\AbstractArgument
be made iterable? not sure that would solve the problem though. Mabe have the default arg be an empty array instead? I don't know what the oldcollection
argument type default value is.refs willdurand/BazingaJsTranslationBundle#291
The text was updated successfully, but these errors were encountered: