Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
add return type hints to EntityFactory#52234
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
add return type hints to EntityFactory#52234
Uh oh!
There was an error while loading.Please reload this page.
Conversation
wouterj commentedOct 22, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
An alternative would be to add the native return type and document the BC break. We've done that for multiple other method implementations as well:#50890 Given |
nicolas-grekas commentedOct 22, 2023
I like@wouterj's proposal! |
f7ec47e tob778bc9Comparederrabus commentedOct 22, 2023
Yes, let's do what@wouterj proposes. If someone complains about the BC break, we could still make the return type conditional using a trait, but I doubt that someone extends this class. While we're at it, should we make |
b778bc9 to3ceed63Comparexabbuh commentedOct 22, 2023
I have added the return types and also marked the class as final. |
smnandre commentedOct 22, 2023
Is this the same problem there ?
If so, could you explain what are the steps to fix ? (i must admit i'm not yet fluent in "multi-php multi-version multi-bundle" troubles 😅 |
wouterj commentedOct 22, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@smnandre that's a different issue: the first parameter |
smnandre commentedOct 22, 2023
Thank you@wouterj ! |
fabpot commentedOct 22, 2023
Thank you@xabbuh. |
derrabus commentedOct 22, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Actually, the issue is the new and optional third parameter. But, as@wouterj said, this is a different and unrelated problem. If you don't know how to solve it, please open a new issue or a dicussion. |
seehttps://github.com/EasyCorp/EasyAdminBundle/actions/runs/6603120076/job/17935909075