Skip to content

Commit

Permalink
Add function to switch to PHP 8.0 (#1553)
Browse files Browse the repository at this point in the history
* Add PHP 8.0 alias

* Add PHP 8.0 function to localized
  • Loading branch information
DieterHolvoet committed Nov 28, 2020
1 parent 5fda924 commit 740ab89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ function php74() {
sudo update-alternatives --set phpize /usr/bin/phpize7.4
}

function php80() {
sudo update-alternatives --set php /usr/bin/php8.0
sudo update-alternatives --set php-config /usr/bin/php-config8.0
sudo update-alternatives --set phpize /usr/bin/phpize8.0
}

function serve-apache() {
if [[ "$1" && "$2" ]]
then
Expand Down
6 changes: 6 additions & 0 deletions resources/localized/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ function php74() {
sudo update-alternatives --set phpize /usr/bin/phpize7.4
}

function php80() {
sudo update-alternatives --set php /usr/bin/php8.0
sudo update-alternatives --set php-config /usr/bin/php-config8.0
sudo update-alternatives --set phpize /usr/bin/phpize8.0
}

function serve-apache() {
if [[ "$1" && "$2" ]]
then
Expand Down

0 comments on commit 740ab89

Please sign in to comment.