aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-12-01 11:43:17 +0100
committerCôme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com>2022-12-19 09:10:41 +0000
commita529aa79d8136ec66db78f1b552940b7e374e12f (patch)
tree831bf63eb9405faa0dac79473547e6956c6c7fe8 /lib/base.php
parente1d324f7ebb311b1e0ed094ec13de43163d7cc68 (diff)
downloadnextcloud-server-a529aa79d8136ec66db78f1b552940b7e374e12f.tar.gz
nextcloud-server-a529aa79d8136ec66db78f1b552940b7e374e12f.zip
Strong type singletons from lib/base.php
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/lib/base.php b/lib/base.php
index 751e6c305fb..a847373ea2b 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -123,21 +123,13 @@ class OC {
*/
public static bool $CLI = false;
- /**
- * @var \OC\Autoloader
- */
- public static $loader = null;
+ public static \OC\Autoloader $loader;
- /** @var \Composer\Autoload\ClassLoader */
- public static $composerAutoloader = null;
+ public static \Composer\Autoload\ClassLoader $composerAutoloader;
- /** @var \OC\Server */
- public static $server = null;
+ public static \OC\Server $server;
- /**
- * @var \OC\Config
- */
- private static $config = null;
+ private static \OC\Config $config;
/**
* @throws \RuntimeException when the 3rdparty directory is missing or