소스 검색

Use func_num_args instead of counting on func_get_args

Gabriel Caruso 6 년 전
부모
커밋
a64b652a6b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Composer/Util/ProcessExecutor.php

+ 1 - 1
src/Composer/Util/ProcessExecutor.php

@@ -60,7 +60,7 @@ class ProcessExecutor
             $cwd = realpath(getcwd());
         }
 
-        $this->captureOutput = count(func_get_args()) > 1;
+        $this->captureOutput = func_num_args() > 1;
         $this->errorOutput = null;
         $process = new Process($command, $cwd, null, null, static::getTimeout());