Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DI] Fix circular-aliases message#25382

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:3.3fromnicolas-grekas:di-fix-msg
Dec 8, 2017

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?3.3
Bug fix?
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

The missing bits in#25364

if (isset($seen[$id])) {
thrownewServiceCircularReferenceException($id,array_keys($seen));
$seen =array_values($seen);
$seen =array_slice($seen,array_search($id,$seen));
Copy link
Member

Choose a reason for hiding this comment

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

the slicing part is not covered by the test (as the tests cover only the case where the loop starts at the beginning of the list).
Can you add another test covering this ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

test updated

@nicolas-grekasnicolas-grekas merged commitf1a7b07 intosymfony:3.3Dec 8, 2017
nicolas-grekas added a commit that referenced this pull requestDec 8, 2017
This PR was merged into the 3.3 branch.Discussion----------[DI] Fix circular-aliases message| Q             | A| ------------- | ---| Branch?       | 3.3| Bug fix?      || New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -The missing bits in#25364Commits-------f1a7b07 [DI] Fix circular-aliases message
@nicolas-grekasnicolas-grekas deleted the di-fix-msg branchDecember 8, 2017 09:57
@yannickl88
Copy link

man, been debugging the container for 2 hours. Applying this change showed me the issues and could solve it in 5 min.

So...when will there be a release? 😇

linaori reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof requested changes

@xabbuhxabbuhxabbuh approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

5 participants

@nicolas-grekas@yannickl88@stof@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp