Implement value retrieval and checks by predicate callback#142
Implement value retrieval and checks by predicate callback#142yus-ham wants to merge 20 commits intoyiisoft:masterfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #142 +/- ##
=========================================
Coverage 99.76% 99.77%
- Complexity 214 226 +12
=========================================
Files 4 4
Lines 429 445 +16
=========================================
+ Hits 428 444 +16
Misses 1 1 ☔ View full report in Codecov by Sentry. |
vjik
left a comment
There was a problem hiding this comment.
Can you fix psalm errors? Seems it shows problems in code...
142b6d0 to
ff4a7fa
Compare
vjik
left a comment
There was a problem hiding this comment.
Now closure will be inconsistent in getValue() and other methods:
toArray()index()getColumn()map()
Is there real case for getValue() with closure that implement in current PR?
|
There is a PHP RFC: array_find and its PR that is what actually I need to be implemented. It seems has been discussed about a month ago and I found exactly it just now. Thank you in advance for taking your time. |
It's interesting. May be we keep ArrayHelper::find()
ArrayHelper::findKey()
ArrayHelper::any()
ArrayHelper::all() |
|
Yes makes sense. |
|
I'll continue with it |
|
done |
closes #135