mirror of
https://github.com/humhub/humhub.git
synced 2025-04-21 07:31:53 +02:00
HumHub ArrayHelper::flatten() not compatible Yii base ArrayHelper #51… (#7376)
* HumHub ArrayHelper::flatten() not compatible Yii base ArrayHelper #512 - https://github.com/humhub/humhub-internal/issues/512 * Add PR ID to CHANGELOG
This commit is contained in:
parent
301c3e61f8
commit
0d954361a9
@ -4,6 +4,7 @@ HumHub Changelog
|
||||
1.17.0-beta.5 (Unreleased)
|
||||
---------------------------------
|
||||
- Fix #7365: `DeviceDetectorHelper::isMobile()` and `DeviceDetectorHelper::isTablet()` when no user agent
|
||||
- Fix #7376: `humhub\helpers\ArrayHelper::flatten()` not compatible Yii base ArrayHelper
|
||||
|
||||
1.17.0-beta.4 (December 24, 2024)
|
||||
---------------------------------
|
||||
|
@ -2,11 +2,9 @@
|
||||
|
||||
namespace humhub\helpers;
|
||||
|
||||
use function humhub\libs\array_flatten;
|
||||
|
||||
class ArrayHelper extends \yii\helpers\ArrayHelper
|
||||
{
|
||||
public static function flatten(array $array, string $separator = '.', string $path = ''): array
|
||||
public static function flatten($array, $separator = '.', string $path = ''): array
|
||||
{
|
||||
$result = [];
|
||||
foreach ($array as $key => $value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user