The ClassMap generator will look regardless, but that's not a runtime cost, so seems desirable (in case composer install/update needs to be called with php5 for some resaon)
@@ -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');