Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-06-06 11:28:10 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2016-06-06 13:38:20 +0300
commit911fd3ead4e8ef3451aabc4b1f0cd1c7fc106e44 (patch)
tree2b1093f1beee5e871809628774859d997bc67b00 /lib/public/IConfig.php
parentc0a91ddca797c9821d3ce8771664b17ee588535f (diff)
Do not allow to store boolean configs, they behave unexpected on postgres
Diffstat (limited to 'lib/public/IConfig.php')
-rw-r--r--lib/public/IConfig.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/IConfig.php b/lib/public/IConfig.php
index 9e5024545b3..05158e9063e 100644
--- a/lib/public/IConfig.php
+++ b/lib/public/IConfig.php
@@ -104,7 +104,7 @@ interface IConfig {
* Writes a new app wide value
*
* @param string $appName the appName that we want to store the value under
- * @param string $key the key of the value, under which will be saved
+ * @param string|float|int $key the key of the value, under which will be saved
* @param string $value the value that should be stored
* @return void
* @since 6.0.0
@@ -149,6 +149,7 @@ interface IConfig {
* @param string $value the value that you want to store
* @param string $preCondition only update if the config value was previously the value passed as $preCondition
* @throws \OCP\PreConditionNotMetException if a precondition is specified and is not met
+ * @throws \UnexpectedValueException when trying to store an unexpected value
* @since 6.0.0 - parameter $precondition was added in 8.0.0
*/
public function setUserValue($userId, $appName, $key, $value, $preCondition = null);