mihaeu / dephpend

Detect flaws in your architecture, before they drag you down into the depths of dependency hell ...

Home Page:https://dephpend.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Same closure arg order for functional collections (set, map, tree, ...)

mihaeu opened this issue · comments

Closures for functional access methods like map or reduce should have the same signature for different implementations. Also $value, $key doesn't make sense and is confusing. Use index for key for sets and leaf identifier for trees.