Skip to content

Commit be303b3

Browse files
committed
remove unnecessary return in Flatten::flatten
1 parent 4fab93d commit be303b3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Flatten.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ public function __construct(
6161
*/
6262
public function flatten($var)
6363
{
64-
$flattened = [];
6564
foreach ($this->flattenGenerator($var, $this->separator, '', $this->flags) as $key => $value) {
6665
yield ($this->prefix . $key) => $value;
6766
}
68-
return $flattened;
6967
}
7068

7169
private function flattenGenerator($var, $separator, $prefix = '', $flags = 0)

0 commit comments

Comments
 (0)