浏览代码

Add a comment explaining the use of @ instead of Silencer in this specific situation.

Niels Keurentjes 9 年之前
父节点
当前提交
86fc85fe56
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/Composer/Autoload/ClassMapGenerator.php

+ 2 - 0
src/Composer/Autoload/ClassMapGenerator.php

@@ -123,6 +123,8 @@ class ClassMapGenerator
         }
 
         try {
+            // Use @ here instead of Silencer to actively suppress 'unhelpful' output
+            // @link https://github.com/composer/composer/pull/4886
             $contents = @php_strip_whitespace($path);
             if (!$contents) {
                 if (!file_exists($path)) {