Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DI] Fix keys resolution in ResolveParameterPlaceHoldersPass #23141

Merged
merged 1 commit into from
Jun 12, 2017

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 3.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Keys are resolved in 3.2, but we broke that when moving to AbstractRecursivePass.

$value->setProperties($this->bag->resolveValue($value->getProperties()));
$value->setMethodCalls($this->bag->resolveValue($value->getMethodCalls()));
}
if (is_array($value = parent::processValue($value, $isRoot)) && $value) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move the parent call outside the if, to be more clear (and remove potential mistakes where deciding to remove the handling of keys might also remove the parent call while it is always necessary)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@fabpot
Copy link
Member

fabpot commented Jun 12, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 9251a21 into symfony:3.3 Jun 12, 2017
fabpot added a commit that referenced this pull request Jun 12, 2017
…ss (nicolas-grekas)

This PR was merged into the 3.3 branch.

Discussion
----------

[DI] Fix keys resolution in ResolveParameterPlaceHoldersPass

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Keys are resolved in 3.2, but we broke that when moving to AbstractRecursivePass.

Commits
-------

9251a21 [DI] Fix keys resolution in ResolveParameterPlaceHoldersPass
@fabpot fabpot mentioned this pull request Jul 4, 2017
@nicolas-grekas nicolas-grekas deleted the µoptim branch July 10, 2017 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants