LoginSignup
0
0

More than 5 years have passed since last update.

[PhpStorm]PHPDOCのException記載漏れエラーをエディタに無視させる

Last updated at Posted at 2019-02-20

PHPDOCを書く際、paramとreturnは書くけど、throwは書いていない
すると、すぐに関数の呼び出し元が黄色くなる(エディタに怒られる)ので回避したい

スクリーンショット 2019-02-20 12.58.39.png

↑ここに無視する例外クラスを追記すればOK

参考
https://blog.jetbrains.com/phpstorm/2018/04/configurable-unchecked-exceptions/

※本当は全部ちゃんと書けという話かもしれない

追記
無視する例外クラスとか設定せずとも、そもそもthrowやreturnを記載しなくても怒られなくて済む設定があった
スクリーンショット 2019-04-24 16.33.48.png

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