Gert-dev / php-ide-serenata

Atom IDE package that integrates the Serenata server to provide PHP code assistance
https://serenata.gitlab.io/
Other
274 stars 19 forks source link

Automatically add @throws when generating docblocks #406

Open Gert-dev opened 6 years ago

Gert-dev commented 6 years ago

This can be done by scanning the method for thrown exceptions, but it would be more interesting to add this to the core. The core can analyze the thrown exceptions via static analysis and memorize them, after which a docblock generation action could add the appropriate @throws statements.