We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df42161 commit fda23d1Copy full SHA for fda23d1
1 file changed
phpvm.sh
@@ -2908,10 +2908,11 @@ phpvm_ls_remote() {
2908
# List all php formulae from Homebrew
2909
remote_versions=$(
2910
brew formulae 2> /dev/null | command grep -E '^php(@[0-9]+\.[0-9]+)?$' | while IFS= read -r formula; do
2911
- case "$formula" in
2912
- php) printf '%s\n' "$(brew_php_major_minor 2> /dev/null || printf '%s\n' 'latest')" ;;
2913
- php@*) printf '%s\n' "${formula#php@}" ;;
2914
- esac
+ if [ "$formula" = "php" ]; then
+ printf '%s\n' "$(brew_php_major_minor 2> /dev/null || printf '%s\n' 'latest')"
+ else
+ printf '%s\n' "${formula#php@}"
2915
+ fi
2916
done | command sort -t. -k1,1n -k2,2n
2917
)
2918
;;
0 commit comments