Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #22677 [DI] Fixed index args bug with ResolveNamedArgumentsPass (…
…weaverryan) This PR was merged into the 3.3-dev branch. Discussion ---------- [DI] Fixed index args bug with ResolveNamedArgumentsPass | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | n/a While upgrading a project, this code suddenly broke: ```yml services: ice_cream_service: class: AppBundle\Service\IceCreamService autowire: true arguments: 1: 'http://api.example.com' ``` ```php class IceCreamService { public function __construct(EntityManager $em, $apiUrl) { } } ``` Suddenly, the index `1` was not being mapped to `$apiUrl`. This was valid in 3.2, but broke when `ResolveNamedArgumentsPass` accidentally re-set the index. Simple fix :). Ping @dunglas Cheers! Commits ------- 7cc7c85 Fixing bug where indexed args were set wrong in pass in some situations
- Loading branch information