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

[DependencyInjection] Add test for issue #49591#51123

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

Open
HypeMC wants to merge1 commit intosymfony:6.3
base:6.3
Choose a base branch
Loading
fromHypeMC:issues-49591-test

Conversation

HypeMC
Copy link
Member

@HypeMCHypeMC commentedJul 27, 2023
edited by derrabus
Loading

QA
Branch?6.3
Bug fix?yes
New feature?no
Deprecations?no
TicketsReproduces#49591
LicenseMIT
Doc PR-

A simple test case to illustrate the problem.

@carsonbot
Copy link

Hey!

Oh no, it looks like you have made this PR towards a branch that is not maintained anymore. :/
Could you update thePR base branch to target one of these branches instead? 5.4, 6.3, 6.4, 7.0.

Cheers!

Carsonbot

$dumper = new PhpDumper($containerBuilder);
$dump = $dumper->dump(['class' => 'Symfony_DI_PhpDumper_Issues49591']);

self::assertStringEqualsFile(__DIR__.'/Fixtures/php/services_issues49591.php', $dump);
Copy link
Member

@derrabusderrabusJul 27, 2023
edited
Loading

Choose a reason for hiding this comment

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

This is the assertion that fails currently. But as far as I understood the issue, the actual issue is reproduced by the following assertion. Do we need this fixture anyway? Doesn't comparing the dump to the fixture only make the test brittle?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

No, it's really not needed, I only added it so that the dumped container can be seen as it might help to understand the issue.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I've removed the assertion & updated the dump for version 6.3 (I originally generated it with 6.2).

@vtsykun
Copy link
Contributor

It looks like a cyclic dependency. Perhaps the right solution would be throw aServiceCircularReferenceException.

  1. session depends from connection->connect()
  2. connect require subscriber
  3. subscriber require session

@fabpotfabpot modified the milestones:6.2,6.3Jul 30, 2023
@nicolas-grekasnicolas-grekas modified the milestones:6.3,6.4Feb 1, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@derrabusderrabusderrabus left review comments

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

6 participants
@HypeMC@carsonbot@vtsykun@derrabus@fabpot@nicolas-grekas

[8]ページ先頭

©2009-2025 Movatter.jp