Skip to content

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