-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Cache result of Groups::groups()
#5747
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 10.5 #5747 +/- ##
=========================================
Coverage 90.08% 90.09%
- Complexity 6437 6438 +1
=========================================
Files 680 680
Lines 19535 19538 +3
=========================================
+ Hits 17599 17603 +4
+ Misses 1936 1935 -1 ☔ View full report in Codecov by Sentry. |
I don't know what todo with these psalm errors. they don't make sense to me. It looks like this method never returned a |
You need to wrap it with |
yes, but that would change the logic of the function. I am not sure the types are wrong or the implementation :). |
I had a closer look at the logic involved and the callers. it seems the callers don't need a |
Groups::groups()
the function call is showing up in blackfire profiles of
blackfire run php ./phpunit --testsuite unit
after this PR the calls are gone