From c39524d36870bdcf16d6598d6a776b7c8fffbdf0 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 5 May 2020 10:36:09 +0200 Subject: [PATCH] Fix "'args' is an automatic variable" warning --- PhpManager/public/Install-Composer.ps1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PhpManager/public/Install-Composer.ps1 b/PhpManager/public/Install-Composer.ps1 index 30b60bd..d89e42b 100644 --- a/PhpManager/public/Install-Composer.ps1 +++ b/PhpManager/public/Install-Composer.ps1 @@ -71,13 +71,13 @@ $installer = Get-FileFromUrlOrCache -Url $installerUrl -CachedFileName 'composer-installer.php' } $tempPhar = [System.IO.Path]::GetTempFileName(); - $args = @() - $args += $installer - $args += '--install-dir=' + (Split-Path -Path $tempPhar -Parent) - $args += '--filename=' + (Split-Path -Path $tempPhar -Leaf) - $args += '2>&1' + $arguments = @() + $arguments += $installer + $arguments += '--install-dir=' + (Split-Path -Path $tempPhar -Parent) + $arguments += '--filename=' + (Split-Path -Path $tempPhar -Leaf) + $arguments += '2>&1' Write-Verbose "Launching Composer installer" - $installerResult = & $phpVersion.ExecutablePath $args + $installerResult = & $phpVersion.ExecutablePath $arguments if ($LASTEXITCODE -ne 0) { throw $installerResult }