Closed
Description
Symfony version(s) affected
5.4.16, 6.0.16, 6.1.8, 6.2.0
Description
With the changes from #48027 empty tags get swallowed if a non-empty tag with the same name already exists. This causes issues because empty tags sometimes have a different meaning like with the container.service_subscriber
tag.
The tag that gets set in
The container.service_subscriber
tag has a different meaning if it is empty as we can see in:
How to reproduce
services:
_instanceof:
Some\Vendor\Interface:
tags:
- { name: container.service_subscriber, id: my.id }
- { name: container.service_subscriber }
(the second tag does not get applied)
Possible Solution
Revert #48027 and solve #48019 differently.
Additional Context
No response