Explorar o código

Use func_num_args instead of counting on func_get_args

Gabriel Caruso %!s(int64=6) %!d(string=hai) anos
pai
achega
a64b652a6b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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());