From 8d8c2bd5242f91b8b8a33a2b7633d276b8b6a8e0 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 2 Dec 2019 17:14:25 +0530 Subject: [PATCH] Use shivammathur/homebrew-php for macOS --- src/scripts/darwin.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index e30d2e86..d2ad93fb 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -20,13 +20,8 @@ add_log() { step_log "Setup PHP and Composer" version=$1 export HOMEBREW_NO_INSTALL_CLEANUP=TRUE -if [ "$1" = "5.6" ] || [ "$1" = "7.0" ]; then - brew tap exolnet/homebrew-deprecated >/dev/null 2>&1 -fi -if [ "$1" = "7.4" ]; then - brew update >/dev/null 2>&1 -fi -brew install php@"$1" composer >/dev/null 2>&1 +brew tap shivammathur/homebrew-php >/dev/null 2>&1 +brew install shivammathur/php/php@"$1" composer >/dev/null 2>&1 brew link --force --overwrite php@"$1" >/dev/null 2>&1 ini_file=$(php -d "date.timezone=UTC" --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g") echo "date.timezone=UTC" >> "$ini_file"