You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/01-04-01-Mac-Setup.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,18 @@ brew install php@8.0
17
17
18
18
You can switch between Homebrew PHP versions by modifying your `PATH` variable. Alternatively, you can use [brew-php-switcher][brew-php-switcher] to switch PHP versions automatically.
19
19
20
+
You can also switch between PHP versions manually by unlinking and linking the wanted version:
21
+
22
+
```
23
+
brew unlink php
24
+
brew link --overwrite php@7.4
25
+
```
26
+
27
+
```
28
+
brew unlink php
29
+
brew link --overwrite php@8.0
30
+
```
31
+
20
32
### Install PHP via Macports
21
33
22
34
The [MacPorts] Project is an open-source community initiative to design an
0 commit comments