Skip to content

Commit c39524d

Browse files
committed
Fix "'args' is an automatic variable" warning
1 parent fe5e6d3 commit c39524d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

PhpManager/public/Install-Composer.ps1

+6-6
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@
7171
$installer = Get-FileFromUrlOrCache -Url $installerUrl -CachedFileName 'composer-installer.php'
7272
}
7373
$tempPhar = [System.IO.Path]::GetTempFileName();
74-
$args = @()
75-
$args += $installer
76-
$args += '--install-dir=' + (Split-Path -Path $tempPhar -Parent)
77-
$args += '--filename=' + (Split-Path -Path $tempPhar -Leaf)
78-
$args += '2>&1'
74+
$arguments = @()
75+
$arguments += $installer
76+
$arguments += '--install-dir=' + (Split-Path -Path $tempPhar -Parent)
77+
$arguments += '--filename=' + (Split-Path -Path $tempPhar -Leaf)
78+
$arguments += '2>&1'
7979
Write-Verbose "Launching Composer installer"
80-
$installerResult = & $phpVersion.ExecutablePath $args
80+
$installerResult = & $phpVersion.ExecutablePath $arguments
8181
if ($LASTEXITCODE -ne 0) {
8282
throw $installerResult
8383
}

0 commit comments

Comments
 (0)