【解決】Warning: Use php@7.1 instead of deprecated homebrew/php/php71
起きたこと
phpbrewや、brewでphp環境を構築していたら、ターミナルを立ち上げた時に毎回、以下のようなWarningが出るようになってしまった。
Warning: Use php@7.1 instead of deprecated homebrew/php/php71
解決策
shellの~/.profile
なり、~/.zshrc
の中で
export PATH="$(brew --prefix homebrew/core/php71)/bin:$PATH"
となっている部分を、
export PATH="$(brew --prefix homebrew/core/php@7.1)/bin:$PATH"
と変更したらWarningが出なくなった。
参考サイト
https://gist.github.com/pixeline/51c43c787f51b018d484597f30be3d2b