Closed
Description
Symfony version(s) affected: since 3.4.27
Description
If using a ServiceLocator with ids that looks like integers, given offset is ignored.
How to reproduce
service:
my_service_locator:
class: Symfony\Component\DependencyInjection\ServiceLocator
public: false
tags: ['container.service_locator']
arguments:
-
'16': '@my_service1'
'32': '@my_service2'
In my usecase, I want a different service based on a computation over data. (a string length). It was working fine with version 3.4.27 but doing the upgrade, system is now broken without changing the dependency injection configuration
Possible Solution
Issue occurs since 7146b95#diff-af68f8fbd009fd8de36403795ea0cf0aR52
Additional context
Metadata
Metadata
Assignees
Labels
No labels