mozyのかきおき

mozyの読書感想文や思考置き場

【解決】Warning: Use php@7.1 instead of deprecated homebrew/php/php71

起きたこと

phpbrewや、brewphp環境を構築していたら、ターミナルを立ち上げた時に毎回、以下のような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