Skip to content

Commit

Permalink
fix add helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
fantismic committed Jul 22, 2024
1 parent 11a0e1e commit e8acb3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions src/DynSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

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

/**
Expand Down

0 comments on commit e8acb3d

Please sign in to comment.