[FrameworkBundle] Fix mocking decorated services in tests#62795
Conversation
|
I'm afraid this still doesn't solve the HttpClient problem because the service name is different. For example, before it was |
|
I figured out the proper fix! |
|
Hey guys. Is there going to be a release tag for 7.4.4 soon? We are still waiting for this fix to be released in version 7. I am referring to #62726 |
|
Could you provide some info @nicolas-grekas to me, please? It seems like after the change in 7.4.4 we now have to use |
Patch releases are usually published at the end of each month. |
The root issue under #62693 was that the innermost decorated service (the original service wrapped by all decorators) was getting inlined into the first decorator during container compilation. When the service is inlined, it no longer exists as a separate service in the container, so
TestContainer::set()can't replace it.