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:
Marc Farré 2025-01-12 11:10:44 +00:00 committed by GitHub
parent 301c3e61f8
commit 0d954361a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -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)
---------------------------------

View File

@ -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) {