From cf6f4b3ac9b05a4717ce592d386e6e25ba2a5009 Mon Sep 17 00:00:00 2001 From: davemednick <93415315+davemednick@users.noreply.github.com> Date: Wed, 29 Nov 2023 19:17:45 -0500 Subject: [PATCH] add php 8.3 support (#91) --- README.md | 2 +- phpswitch.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 50e7d18..6904fd6 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Installation brew install brew-php-switcher ``` -Where **5.6** exists, please replace with syntax of **5.6**, **7.0**, **7.1**, **7.2**, **7.3**, **7.4** or **8.0** depending on which version is required. +Where **5.6** exists, please replace with syntax of **5.6**, **7.0**, **7.1**, **7.2**, **7.3**, **7.4**, **8.0**, **8.1**, **8.2** or **8.3** depending on which version is required. ```sh brew-php-switcher 5.6 ``` diff --git a/phpswitch.sh b/phpswitch.sh index 4f0ea29..bc5a299 100755 --- a/phpswitch.sh +++ b/phpswitch.sh @@ -9,9 +9,9 @@ osx_version=$((${osx_major_version} * 10000 + ${osx_minor_version} * 100 + ${osx brew_prefix=$(brew --prefix | sed 's#/#\\\/#g') -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") -valet_support_php_version_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") +brew_array=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1" "8.2", "8.3") +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" "php@8.3") +valet_support_php_version_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" "php@8.3") php_installed_array=() php_version="php@$1" php_opt_path="$brew_prefix\/opt\/"