We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4674c57 commit d233d36Copy full SHA for d233d36
src/Flatten.php
@@ -155,7 +155,7 @@ private function flattenGenerator($var, $prefix)
155
}
156
157
158
- $prefix .= (empty($prefix) ? '' : $this->separator);
+ $prefix .= ($prefix == '' ? '' : $this->separator);
159
foreach ($var as $key => $value) {
160
foreach ($this->flattenGenerator($value, $prefix . $key) as $k => $v) {
161
yield $k => $v;
0 commit comments