-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 final for every method of abstract classes #7108
Add final for every method of abstract classes #7108
Conversation
I need to check if the |
Maybe you can help me @franmomu since you're using the Simple Pager ; do you see any differences if you remove the override of the method ? |
I haven't checked in a project and I guess it would be the same, but in |
Since the
I don't see real perfomance improvements. |
When iterating results: SonataAdminBundle/src/Datagrid/SimplePager.php Lines 92 to 113 in 7805e4a
|
I agree, but only a multiplication and a sum is done, so it's not significant. |
IMO we should not mark it final if the simple pager overrides it, have you tried performance implications of it? |
Previously it was
Now it's
It only cost a multiplication ; there is no impact. |
Please review @sonata-project/contributors |
Thank you @VincentLanglet |
Subject
I am targeting this branch, because BC.
Closes #5791. (I think)
Changelog