Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

Commit

Permalink
Merge pull request #7 from sebastienheyd/master
Browse files Browse the repository at this point in the history
Closes #3
  • Loading branch information
kaidesu committed Mar 6, 2016
2 parents 4816e4c + 0f0f194 commit 3cd5085
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/WidgetFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ protected function flattenParameters(array $parameters)
{
$flattened = array();

array_walk_recursive($parameters, function($value, $key) use (&$flattened) {
$flattened[$key] = $value;
});
foreach($parameters as $parameter) {
array_walk($parameter, function($value, $key) use (&$flattened) {
$flattened[$key] = $value;
});
}

return $flattened;
}
Expand Down

0 comments on commit 3cd5085

Please sign in to comment.