diff options
author | J0WI <J0WI@users.noreply.github.com> | 2021-04-26 12:33:36 +0200 |
---|---|---|
committer | J0WI <J0WI@users.noreply.github.com> | 2021-04-26 12:33:45 +0200 |
commit | efc5c57a79a5bad9b91135a436c1eca717082968 (patch) | |
tree | d1f1f1192228ecdc9e1d7b69f50cd53eb067f7ff /lib/autoloader.php | |
parent | 8f3a0705d46c1c196521cdb33c75acf92ea05026 (diff) | |
download | nextcloud-server-efc5c57a79a5bad9b91135a436c1eca717082968.tar.gz nextcloud-server-efc5c57a79a5bad9b91135a436c1eca717082968.zip |
Some more strict_types
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'lib/autoloader.php')
-rw-r--r-- | lib/autoloader.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/autoloader.php b/lib/autoloader.php index cf25f4498a8..b37e20c2379 100644 --- a/lib/autoloader.php +++ b/lib/autoloader.php @@ -68,7 +68,7 @@ class Autoloader { * * @param string $root */ - public function addValidRoot(string $root) { + public function addValidRoot(string $root): void { $root = stream_resolve_include_path($root); $this->validRoots[$root] = true; } @@ -76,14 +76,14 @@ class Autoloader { /** * disable the usage of the global classpath \OC::$CLASSPATH */ - public function disableGlobalClassPath() { + public function disableGlobalClassPath(): void { $this->useGlobalClassPath = false; } /** * enable the usage of the global classpath \OC::$CLASSPATH */ - public function enableGlobalClassPath() { + public function enableGlobalClassPath(): void { $this->useGlobalClassPath = true; } @@ -184,7 +184,7 @@ class Autoloader { * * @param \OC\Memcache\Cache $memoryCache Instance of memory cache. */ - public function setMemoryCache(\OC\Memcache\Cache $memoryCache = null) { + public function setMemoryCache(\OC\Memcache\Cache $memoryCache = null): void { $this->memoryCache = $memoryCache; } } |