diff --git a/package_manager/src/ProcessFactory.php b/package_manager/src/ProcessFactory.php index 6d7ef4c90aa305b7d341752f61d9517a7f7e3e77..7530b3721176982e94d01071eaf12e1a6bb7897d 100644 --- a/package_manager/src/ProcessFactory.php +++ b/package_manager/src/ProcessFactory.php @@ -74,7 +74,8 @@ final class ProcessFactory implements ProcessFactoryInterface { if ($this->isComposerCommand($command)) { $env['COMPOSER_HOME'] = $this->getComposerHomePath(); } - // Ensure that the PHP interpreter is in the PATH. + // Ensure that the current PHP installation is the first place that will be + // searched when looking for the PHP interpreter. $env['PATH'] = static::getPhpDirectory() . ':' . $this->getEnv('PATH'); return $process->setEnv($env); }