Tom*_*ski 5 php exception phpdoc docblocks phpstorm
在PhpStorm's
设置中Editor/Inspections/PHP/PHPDoc/Missing @throw tag(s)
有两个默认选择的选项:
问题:为什么我要在创建 DocBlock 时忽略这些特定的异常?我想这需要有充分的理由,因为默认情况下会检查这些选项。
Logic Exceptions
是像DomainException
或这样的例外InvalidArgumentException
。
Runtime Exceptions
是例外,如RangeException
或UnderflowException
注意:我使用的是 PhpStorm v8.0.3