Cache result of Groups::groups()#5747
Cache result of Groups::groups()#5747sebastianbergmann merged 3 commits intosebastianbergmann:10.5from
Groups::groups()#5747Conversation
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 unitafter this PR the calls are gone