🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@lyrixx
Copy link
Member

@lyrixx lyrixx commented Jun 11, 2025

Q A
Branch? 7.3
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #60765
License MIT

Copy link
Member

@stof stof left a comment

Choose a reason for hiding this comment

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

We should have tests preventing regressions

@lyrixx
Copy link
Member Author

lyrixx commented Jun 16, 2025

@nicolas-grekas Is it the way to go? If yes, I'll finish this PR asap

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

Yes, this needs to be fixed, good catch.
The class name should be extracted from $value instead I think, after the call to $getValue().

@lyrixx lyrixx force-pushed the dic-proxy-on-origin-service branch from 5564059 to d45bd61 Compare August 6, 2025 15:49
@lyrixx lyrixx changed the base branch from 6.4 to 7.3 August 6, 2025 15:50
@lyrixx
Copy link
Member Author

lyrixx commented Aug 6, 2025

I updated the PR

  • Added test
  • Used $value
  • change the base branch to 7.3. Actually, the bug does not exist in 6.4. Only on 7.0 and higher.

@lyrixx lyrixx force-pushed the dic-proxy-on-origin-service branch from d45bd61 to 002d735 Compare August 25, 2025 09:43
{
public function __construct(
private Foo $foo,
private string $name = 'my-app',
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this prop or can we return my-app directly in getName()?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, it's needed. If I hardcode the name, and revert my patch, the test pass.

@nicolas-grekas nicolas-grekas modified the milestones: 6.4, 7.3 Sep 1, 2025
@nicolas-grekas
Copy link
Member

Good catch, thanks @lyrixx.

@nicolas-grekas nicolas-grekas merged commit 5ff7e23 into symfony:7.3 Sep 1, 2025
7 of 11 checks passed
@lyrixx lyrixx deleted the dic-proxy-on-origin-service branch September 1, 2025 10:13
@fabpot fabpot mentioned this pull request Sep 27, 2025
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.

5 participants