diff --git a/src/Core/Config.php b/src/Core/Config.php index 93cb26657..b686b63e5 100644 --- a/src/Core/Config.php +++ b/src/Core/Config.php @@ -110,7 +110,7 @@ class Config extends BaseObject * @param string $key The configuration key to set * @param mixed $value The value to store * - * @return mixed Stored $value or false if the database update failed + * @return bool Operation success */ public static function set($family, $key, $value) { diff --git a/src/Core/Config/IConfigAdapter.php b/src/Core/Config/IConfigAdapter.php index d1bb60033..4bd8eac26 100644 --- a/src/Core/Config/IConfigAdapter.php +++ b/src/Core/Config/IConfigAdapter.php @@ -53,7 +53,7 @@ interface IConfigAdapter * @param string $key The configuration key to set * @param mixed $value The value to store * - * @return mixed Stored $value or false if the database update failed + * @return bool Operation success */ public function set($cat, $k, $value); diff --git a/src/Core/Config/IPConfigAdapter.php b/src/Core/Config/IPConfigAdapter.php index a0f0c9a94..b91241843 100644 --- a/src/Core/Config/IPConfigAdapter.php +++ b/src/Core/Config/IPConfigAdapter.php @@ -57,7 +57,7 @@ interface IPConfigAdapter * @param string $k The configuration key to set * @param string $value The value to store * - * @return mixed Stored $value or false + * @return bool Operation success */ public function set($uid, $cat, $k, $value); diff --git a/src/Core/Config/JITConfigAdapter.php b/src/Core/Config/JITConfigAdapter.php index c03a010cd..96e4305ea 100644 --- a/src/Core/Config/JITConfigAdapter.php +++ b/src/Core/Config/JITConfigAdapter.php @@ -112,7 +112,6 @@ class JITConfigAdapter extends BaseObject implements IConfigAdapter if ($result) { $this->in_db[$cat][$k] = true; - return $value; } return $result; diff --git a/src/Core/Config/JITPConfigAdapter.php b/src/Core/Config/JITPConfigAdapter.php index ce9c5b646..ffd807a36 100644 --- a/src/Core/Config/JITPConfigAdapter.php +++ b/src/Core/Config/JITPConfigAdapter.php @@ -98,7 +98,6 @@ class JITPConfigAdapter extends BaseObject implements IPConfigAdapter if ($result) { $this->in_db[$uid][$cat][$k] = true; - return $value; } return $result; diff --git a/src/Core/PConfig.php b/src/Core/PConfig.php index aa5f75abe..e8b5c6ca5 100644 --- a/src/Core/PConfig.php +++ b/src/Core/PConfig.php @@ -107,7 +107,7 @@ class PConfig extends BaseObject * @param string $key The configuration key to set * @param string $value The value to store * - * @return mixed Stored $value or false + * @return bool Operation success */ public static function set($uid, $family, $key, $value) {