LoginSignup
0
0

More than 3 years have passed since last update.

【エラー】sublime Text 3 Warning PHP 7.0 or newer is required

Last updated at Posted at 2019-08-14

未だにsublimeとかも使ってる。エラーが出たので一応メモ。
phpenvとか使わずに簡単にbrewで入れる場合。

php7入れる。

brew search php@7

パス通す。
$PATHには全部の環境変数が入ってるので、他のを上書きして消さないように注意。

~/.bashrc
export PATH="/usr/local/opt/php@7.1/bin:/usr/local/opt/php@7.1/sbin:$PATH"

適応

source ~/.bashrc

設定を変更

Preferences/Package Settings/phpfmt/Settings- User
Preferences/Package Settings/phpfmt/Settings- Default

見るバイナリを7.1の方に変更。

{
"version": 4,
"php_bin":"/usr/local/opt/php@7.1/bin/php",
// "format_on_save":true,
"option": "value"
}

以上

参考

https://qiita.com/noraworld/items/4556f91bc31f641d187d
https://es.stackoverflow.com/questions/255228/sublime-text-3-warning-php-7-0-or-newer-is-required

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0