From f7b5b362d1916e4587c3e4444eaf2998aa07738d Mon Sep 17 00:00:00 2001 From: Corey Date: Sat, 9 Oct 2021 00:12:53 -0500 Subject: [PATCH] Add PHP 8.0, 8.1, and 8.2 support --- switch-php.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/switch-php.sh b/switch-php.sh index 37134fb..00c34ed 100755 --- a/switch-php.sh +++ b/switch-php.sh @@ -14,8 +14,8 @@ NC="\e[0m" # Reset everything # Currently available php packages -brew_array=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4") -php_array=("php@5.6" "php@7.0" "php@7.1" "php@7.2" "php@7.3" "php@7.4") +brew_array=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1" "8.2") +php_array=("php@5.6" "php@7.0" "php@7.1" "php@7.2" "php@7.3" "php@7.4" "php@8.0" "php@8.1" "php@8.2") # STARTS THE SPINNER @@ -106,7 +106,7 @@ while :; do show_help exit ;; - 5.6|7.0|7.1|7.2|7.3|7.4) # If a version is specified; then + 5.6|7.0|7.1|7.2|7.3|7.4|8.0|8.1|8.2) # If a version is specified; then php_version="php@$1" rflag="true" # Required! ;;