From a64b652a6b451fc40482dcf25d9150fbe2600810 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Sun, 14 Oct 2018 17:45:44 -0300 Subject: [PATCH] Use func_num_args instead of counting on func_get_args --- src/Composer/Util/ProcessExecutor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/ProcessExecutor.php b/src/Composer/Util/ProcessExecutor.php index 5e40470b0..d2efc5377 100644 --- a/src/Composer/Util/ProcessExecutor.php +++ b/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());