Skip to content

Commit d233d36

Browse files
author
Alaa Sarhan
committed
fix
1 parent 4674c57 commit d233d36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Flatten.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private function flattenGenerator($var, $prefix)
155155
}
156156
}
157157

158-
$prefix .= (empty($prefix) ? '' : $this->separator);
158+
$prefix .= ($prefix == '' ? '' : $this->separator);
159159
foreach ($var as $key => $value) {
160160
foreach ($this->flattenGenerator($value, $prefix . $key) as $k => $v) {
161161
yield $k => $v;

0 commit comments

Comments
 (0)