浏览代码

just added a \ before RuntimeException (sorry I didn't run the test)

Giulio De Donato 12 年之前
父节点
当前提交
1ac1bfb25b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Autoload/ClassMapGenerator.php

+ 1 - 1
src/Composer/Autoload/ClassMapGenerator.php

@@ -91,7 +91,7 @@ class ClassMapGenerator
         try {
             $tokens   = token_get_all($contents);
         } catch (\Exception $e) {
-            throw new RuntimeException('Could not scan for classes inside '.$path.": \n".$e->getMessage(), 0, $e);
+            throw new \RuntimeException('Could not scan for classes inside '.$path.": \n".$e->getMessage(), 0, $e);
         }
         $T_TRAIT  = version_compare(PHP_VERSION, '5.4', '<') ? -1 : T_TRAIT;