From 81ae8de155e9c902a864bd254522318bdae5cc22 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 21 Aug 2024 19:44:04 +0900 Subject: [PATCH] Fix #2393 make add() a true alias to set() --- classes/object/Object.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/object/Object.class.php b/classes/object/Object.class.php index 728e0acb3..6c574b4be 100644 --- a/classes/object/Object.class.php +++ b/classes/object/Object.class.php @@ -210,8 +210,7 @@ class BaseObject */ public function add($key, $val) { - $this->variables[$key] = $val; - return $this; + return $this->set($key, $val); } /**