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); } /**