passing properties to recursive call if properties of top object are not specified

fixes #7717
close #10960
This commit is contained in:
Vladimir Khramov
2016-02-25 18:03:43 +10:00
committed by Carsten Brandt
parent 627233715b
commit c6d04644d3
3 changed files with 42 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class BaseArrayHelper
}
}
return $recursive ? static::toArray($result) : $result;
return $recursive ? static::toArray($result, $properties) : $result;
} else {
return [$object];
}