Closed peterfox closed 1 month ago
TypeHintTappableCallRector
Should be a neat rule to help people automatically type hint the tap method.
-tap($collection, function ($collection) {} +tap($collection, function (Collection $collection) {}
-(new Collection)->tap(function ($collection) {} +(new Collection)->tap(function (Collection $collection) {}
Thank you for catching those @GeniJaho 😄
Changes
TypeHintTappableCallRector
ruleWhy
Should be a neat rule to help people automatically type hint the tap method.