diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-02 16:36:21 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-02 16:36:21 +0100 |
commit | 19e213696324f4d9ce3189aa87c43b9957ea939e (patch) | |
tree | 8133b84c0f95eaf50b9bf403f7e405006c2078f3 /apps/encryption/composer | |
parent | 2afa1c57393790b33bc6593f9215482d8a4dd9f9 (diff) | |
download | nextcloud-server-19e213696324f4d9ce3189aa87c43b9957ea939e.tar.gz nextcloud-server-19e213696324f4d9ce3189aa87c43b9957ea939e.zip |
Update autoloader files
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/encryption/composer')
-rw-r--r-- | apps/encryption/composer/composer/ClassLoader.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/encryption/composer/composer/ClassLoader.php b/apps/encryption/composer/composer/ClassLoader.php index 4d989a212c9..247294d66ee 100644 --- a/apps/encryption/composer/composer/ClassLoader.php +++ b/apps/encryption/composer/composer/ClassLoader.php @@ -311,8 +311,10 @@ class ClassLoader spl_autoload_register(array($this, 'loadClass'), true, $prepend); if (null === $this->vendorDir) { - //no-op - } elseif ($prepend) { + return; + } + + if ($prepend) { self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; } else { unset(self::$registeredLoaders[$this->vendorDir]); |