Skip to content

Commit

Permalink
do not use same variable inside and outside of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mringler committed Dec 6, 2021
1 parent 3caa4bf commit 2282038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Propel/Generator/Builder/Om/TableMapBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,9 +712,9 @@ protected function stringify($value): string
}

$items = [];
foreach ($value as $key => $value) {
foreach ($value as $key => $arrayValue) {
$keyString = var_export($key, true);
$valString = $this->stringify($value);
$valString = $this->stringify($arrayValue);
$items[] = "$keyString => $valString";
}
$itemsCsv = implode(', ', $items);
Expand Down

0 comments on commit 2282038

Please sign in to comment.