Fix icu4c version for PHP 5.6 and PHP 7.0 on darwin

This commit is contained in:
Shivam Mathur 2020-04-30 16:59:19 +05:30
parent c471c0a458
commit a7ea0636d7
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -165,6 +165,9 @@ setup_php() {
fi fi
export HOMEBREW_NO_INSTALL_CLEANUP=TRUE export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
brew tap shivammathur/homebrew-php brew tap shivammathur/homebrew-php
if [ "$version" = "5.6" ] || [ "$version" = "7.0" ]; then
brew install https://raw.githubusercontent.com/shivammathur/homebrew-php/master/Formula/icu4c.rb --force
fi
brew install shivammathur/php/php@"$version" brew install shivammathur/php/php@"$version"
brew link --force --overwrite php@"$version" brew link --force --overwrite php@"$version"
} }