diff --git a/src/Package.php b/src/Package.php index e92fcfa..5fea0f0 100644 --- a/src/Package.php +++ b/src/Package.php @@ -119,8 +119,8 @@ public function enableAutoloader() $psr0 = $this->getConfig('autoload.psr-0', []); $psr4 = $this->getConfig('autoload.psr-4', []); - if (!empty($psr0) && !empty($psr4)) { - $loader = new \Composer\Autload\ClassLoader(); + if (!empty($psr0) || !empty($psr4)) { + $loader = new \Composer\Autoload\ClassLoader(); // load psr-0 foreach ($psr0 as $namespace => $path) {