philcook / brew-php-switcher

Brew PHP switcher is a simple shell script to switch your apache and CLI quickly between major versions of PHP. If you support multiple products/projects that are built using either brand new or old legacy PHP functionality. For users of Homebrew (or brew for short) currently only.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

brew-php-switcher still shows either version in iTerm after switching

handhikadj opened this issue · comments

I have php v5.6, v7.3, and v7.4

When I switch either 7.3 or 7.4 and type php -v in iTerm, it still logs me the 5.6 even if phpinfo() logs me right. So, when I install laravel with laravel new my-app, it shows me error: This package requires php ^7.2 but your PHP version (5.6.40) does not satisfy that requirement.

please help

@handhikadj ok can I ask are you using bash or zsh or something else. iTerm shouldn't matter really as far as I know as its just the terminal window.
Have you tried with the native terminal program and does this have the same outcome?

I think everything's fine now