diff --git a/src/Composer/Autoload/ClassLoader.php b/src/Composer/Autoload/ClassLoader.php index 150cfc881..e27edeb1d 100644 --- a/src/Composer/Autoload/ClassLoader.php +++ b/src/Composer/Autoload/ClassLoader.php @@ -292,7 +292,7 @@ class ClassLoader } $file = $this->findFileWithExtension($class, '.php'); - if ($file === null) { + if ($file === null && defined('HHVM_VERSION')) { // Indicates a Hack file (hacklang.org) $file = $this->findFileWithExtension($class, '.hh'); }