-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DI] Fix false-positive circular exception #25247
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
Conversation
nicolas-grekas
commented
Dec 1, 2017
Q | A |
---|---|
Branch? | 3.4 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #25240 |
License | MIT |
Doc PR | - |
120d83e
to
adf1819
Compare
With this my 3.4 build would have been red too, right? Or can i reset my "fix" (set the second service to public) now? |
yes, you can revert your fix |
Thank you @nicolas-grekas. |
This PR was merged into the 3.4 branch. Discussion ---------- [DI] Fix false-positive circular exception | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25240 | License | MIT | Doc PR | - Commits ------- adf1819 [DI] Fix false-positive circular exception
Thanks @nicolas-grekas |
{ | ||
$a = ${($_ = isset($this->services['foo5']) ? $this->services['foo5'] : $this->getFoo5Service()) && false ?: '_'}; | ||
|
||
if (isset($this->services['bar5'])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this come first, before defining the $a
variable ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah no, understand. This is the call to $this->getFoo5Service()
which can register it in $this->services