-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
Optimized imports #2124
Optimized imports #2124
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## development #2124 +/- ##
==============================================
Coverage 90.47% 90.47%
Complexity 1945 1945
==============================================
Files 189 189
Lines 4388 4388
==============================================
Hits 3970 3970
Misses 418 418 ☔ View full report in Codecov by Sentry. |
Wow, swathe of updates there, but all make sense. Once the next release is done, then I'll look at merging this into the development branch and releasing, as there's already a lot in the next release |
I've started reviewing this properly. It's well worth noting, it has no impact on performance if you have imports that aren't used. Modern PHP "use" isn't the same as old-school "require/include". Removing currently unused namespace declarations may not add a lot, as a lot of the code is in flux to extent. I think a three-stage PR would be best, as it reduces the potential for impact on odd implementations. Something we have to keep in mind with the sheer number of sites using the package. My steer would be three separate PRs: Once merged in: Once merged in: Welcome comments on that though! |
Do you use an IDE like PHPStorm, if you don't mind me asking? It shows me ... kinda much stuff on things that could be improved. As I use this package for the company I work for, I would like to optimize the code further. What exactly do you mean by superfluous code? |
So we support Laravel 10 + 11 in v3, with the various iterations of PHP that are supported by those. I'm keen to merge this in, but in multiple stages, as I run some separate tests to the main tests. None of the changes should break anything, but sometimes some of the sites using the package have some oddities in their config, so it can be smoother to merge changes of this size in stages. By superfluous, I mean unused, e.g. where you've removed some of the classes that aren't used in a specific file. As for IDE etc, quite often there are PRs from various contributors, and we've set the styling fixes to be more forgiving than amending, which is why there are anomalies with spacing in namespace declarations |
I've merged this into development for testing purposes |
Hi there 👋
This PR includes:
All Submissions:
Changes to Core Features: