From 9da3c0764acc12108e353f9b43dffde7b8659e50 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Tue, 22 Dec 2020 09:45:29 +0300 Subject: [PATCH] Install the latest PHP version (#2210) --- images/win/scripts/Installers/Install-PHP.ps1 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/images/win/scripts/Installers/Install-PHP.ps1 b/images/win/scripts/Installers/Install-PHP.ps1 index e76350d8..7e766bba 100644 --- a/images/win/scripts/Installers/Install-PHP.ps1 +++ b/images/win/scripts/Installers/Install-PHP.ps1 @@ -3,14 +3,9 @@ ## Desc: Install PHP ################################################################################ -# Get latest PHP-7.4 -$url = "https://raw.githubusercontent.com/chocolatey-community/chocolatey-coreteampackages/master/automatic/php/php.json" -$phpVersion = [System.Net.WebClient]::new().DownloadString($url) | ConvertFrom-Json -$latestPHPVersion = $phpVersion.'7.4' - # Install latest PHP in chocolatey $installDir = "c:\tools\php" -Choco-Install -PackageName php -ArgumentList "--version=$latestPHPVersion","--force", "--params", "/InstallDir:$installDir" +Choco-Install -PackageName php -ArgumentList "--force", "--params", "/InstallDir:$installDir" # Install latest Composer in chocolatey Choco-Install -PackageName composer -ArgumentList "--ia", "/DEV=$installDir /PHP=$installDir"