Open Gert-dev opened 6 years ago
When extracting this code:
foreach ($test as $value) { $value->foo(); }
Extract method tries to make $value a method parameter, whilst injecting it is not necessary. It is possible that the same happens for foreach loop keys.
$value
When extracting this code:
Extract method tries to make
$value
a method parameter, whilst injecting it is not necessary. It is possible that the same happens for foreach loop keys.