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
add return type hints to EntityFactory #52234
add return type hints to EntityFactory #52234
Conversation
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 |
I like @wouterj's proposal! |
f7ec47e
to
b778bc9
Compare
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
to
3ceed63
Compare
I have added the return types and also marked the class as final. |
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 😅 |
@smnandre that's a different issue: the first parameter |
Thank you @wouterj ! |
Thank you @xabbuh. |
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. |
see https://github.com/EasyCorp/EasyAdminBundle/actions/runs/6603120076/job/17935909075