From e8acb3df4c20686a8425a11526b8dc99731a2d76 Mon Sep 17 00:00:00 2001 From: fantismic Date: Mon, 22 Jul 2024 16:08:29 -0300 Subject: [PATCH] fix add helpers --- composer.json | 2 +- src/DynSettings.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 1b51828..6bc93c2 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "fantismic/dynamic-settings", - "version": "1.1.1", + "version": "1.1.2", "description": "This package creates custom dynamic settings controlled by the user.", "license": "MIT", "keywords": [ diff --git a/src/DynSettings.php b/src/DynSettings.php index e839ff8..329e34a 100644 --- a/src/DynSettings.php +++ b/src/DynSettings.php @@ -70,7 +70,7 @@ public function add(string $key, mixed $value, string $type, string $name, strin * @return mixed */ public function addBool(string $key, string $name, bool $value, string $group, string $association, string $description = null): mixed { - return DynamicSetting::add($key,$value,'boolean',$group,$association,$description); + return DynamicSetting::add($key,$value,'boolean',$name,$group,$association,$description); } /** @@ -85,7 +85,7 @@ public function addBool(string $key, string $name, bool $value, string $group, s * @return mixed */ public function addString(string $key, string $name, string $value, string $group, string $association, string $description = null): mixed { - return DynamicSetting::add($key,$value,'string',$group,$association,$description); + return DynamicSetting::add($key,$value,'string',$name,$group,$association,$description); } /**