From a44b18bf6348e4a0749d009bea372fc564252e9a Mon Sep 17 00:00:00 2001 From: Manjaro Nt5 - Novo Date: Wed, 15 Apr 2026 22:05:21 -0400 Subject: [PATCH] Fix PHP 8.2 deprecation: avoid dynamic properties on ArrayObject in recursive() --- base.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/base.php b/base.php index 06f24c36..2a983885 100644 --- a/base.php +++ b/base.php @@ -974,8 +974,15 @@ function recursive($arg,$func,$stack=[]) { // skip inaccessible properties #350 if (!$it && !isset($arg->$key)) continue; - $arg->$key=$this->recursive( - $val,$func,array_merge($stack,[$arg])); + $value = $this->recursive( + $val, $func, array_merge($stack, [$arg]) + ); + + if ($arg instanceof \ArrayObject) { + $arg[$key] = $value; + } else { + $arg->$key = $value; + } } } return $arg;