diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-24 14:13:40 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-24 14:13:40 +0200 |
commit | b3a04840b54464457298807d6609d525d68d8953 (patch) | |
tree | 408d7c8103a788cbb7c714f64649be180f54ed4d /lib/private/util.php | |
parent | 77b8e1543a697dbc5fad0bdbbc6bb6c271448066 (diff) | |
download | nextcloud-server-b3a04840b54464457298807d6609d525d68d8953.tar.gz nextcloud-server-b3a04840b54464457298807d6609d525d68d8953.zip |
Add type hinting to functions
It's only reasonable to have proper type hinting here which might even help us to catch bugs.
Diffstat (limited to 'lib/private/util.php')
-rw-r--r-- | lib/private/util.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 858138f58fe..d600f8a5e64 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -420,7 +420,7 @@ class OC_Util { * @param \OCP\IConfig $config * @return array arrays with error messages and hints */ - public static function checkServer($config) { + public static function checkServer(\OCP\IConfig $config) { $l = \OC::$server->getL10N('lib'); $errors = array(); $CONFIG_DATADIRECTORY = $config->getSystemValue('datadirectory', OC::$SERVERROOT . '/data'); @@ -1309,7 +1309,7 @@ class OC_Util { * @param \OCP\IConfig $config * @return bool whether the core or any app needs an upgrade */ - public static function needUpgrade($config) { + public static function needUpgrade(\OCP\IConfig $config) { if ($config->getSystemValue('installed', false)) { $installedVersion = $config->getSystemValue('version', '0.0.0'); $currentVersion = implode('.', OC_Util::getVersion()); |