8000 [DependencyInjection] Skip parameter attribute configurators in AttributeAutoconfigurationPass if we can't get the constructor reflector by fancyweb · Pull Request #44385 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[DependencyInjection] Skip parameter attribute configurators in AttributeAutoconfigurationPass if we can't get the constructor reflector #44385

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

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

fancyweb
Copy link
Contributor
@fancyweb fancyweb commented Dec 1, 2021
Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets #44342
License MIT
Doc PR -

$required = false on getConstructor() doesn't mean it doesn't throw. I have looked at our other usages, and we catch the exception when we want to ignore it. I'd still like to return null when the definition class is null though (on 4.4).

@gjuric
Copy link
Contributor
gjuric commented Dec 1, 2021

I can confirm that this fixes the reported bug on my end.

…buteAutoconfigurationPass if we can't get the constructor reflector
@fancyweb fancyweb force-pushed the di/attr-auto-get-constructor branch from 5927651 to b2fe0e0 Compare December 1, 2021 16:25
@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

@nicolas-grekas nicolas-grekas merged commit 4693727 into symfony:5.4 Dec 1, 2021
@fancyweb fancyweb deleted the di/attr-auto-get-constructor branch December 1, 2021 17:06
This was referenced Dec 9, 2021
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.

4 participants
0