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"