diff --git a/.appveyor.yml b/.appveyor.yml index b8165168247..278fe6c89e9 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -37,6 +37,9 @@ init: ## Install PHP and composer, and run the appropriate composer command install: + - ps: choco search php --exact --all-versions -r + - ps: choco search php --exact --all-versions -r | select-string -pattern $env:php + - ps: choco search php --exact --all-versions -r | select-string -pattern $env:php | sort { [version]($_ -split '\|' | select -last 1) } -Descending - ps: | # Check if installation is cached if (!(Test-Path c:\tools\php)) {