8000 [DependencyInjection] Fix lazy proxy type resolution for decorated services by nicolas-grekas · Pull Request #63213 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
8000

Conversation

@nicolas-grekas
Copy link
Member
Q A
Branch? 7.3
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #61877
License MIT

When using #[Autowire(service: 'cache.app', lazy: true)] on a service that is decorated (e.g., TraceableAdapter decorates FilesystemAdapter), the lazy proxy was incorrectly created based on the PHP type hint (FilesystemAdapter) instead of the actual service class (TraceableAdapter).

@carsonbot carsonbot added this to the 7.3 milestone Jan 27, 2026
@nicolas-grekas nicolas-grekas merged commit ba9dc32 into symfony:7.3 Jan 27, 2026
11 of 12 checks passed
@fabpot fabpot mentioned this pull request Jan 28, 2026
@nicolas-grekas nicolas-grekas deleted the lazy-61877 branch January 28, 2026 10:28
This was referenced Jan 28, 2026
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.

2 participants

0