0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CakePHP Code Snifferのversion指定

Posted at

CakePHP3系をつかっているプロジェクトの話です。
cakephp-codesnifferをstable指定("cakephp/cakephp-codesniffer": "@stable")で使っていたのですが、どこかのタイミングでcakephp-codesniffer のversionが4系を使うようになっていました。けっこうルールが変わっていていて警告がいくつか出るようになっていたので、今回はCakePHPとcakephp-codesnifferは同じメジャーバージョンを揃えることにしました。

今後意図しないタイミングでの変更を防ぐために "cakephp/cakephp-codesniffer": "^3.0" としました。

Often you can use higher versions of the sniffer even if you are not yet at the recommended CakePHP minimum version.

ただ、CakePHPのversionよりsnifferが高いversionを使うことはできそうなので、警告への対応ができる場合はあげても良いかもしれません。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?