Download the PHP package savinmikhail/annotate_throws_rector without Composer
On this page you can find all versions of the php package savinmikhail/annotate_throws_rector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download savinmikhail/annotate_throws_rector
More information about savinmikhail/annotate_throws_rector
Files in savinmikhail/annotate_throws_rector
Download savinmikhail/annotate_throws_rector
More information about savinmikhail/annotate_throws_rector
Files in savinmikhail/annotate_throws_rector
Vendor savinmikhail
Package annotate_throws_rector
Short Description Rector rule to add missing @throws tags for direct throws and inter-class propagation
License MIT
Homepage https://github.com/savinmikhail/AnnotateThrowsRector
Package annotate_throws_rector
Short Description Rector rule to add missing @throws tags for direct throws and inter-class propagation
License MIT
Homepage https://github.com/savinmikhail/AnnotateThrowsRector
Keywords static analysisdev
Please rate this library. Is it a good library?
Informations about the package annotate_throws_rector
AnnotateThrowsRector
Rector extension that adds missing @throws tags for:
- direct
throwexpressions in class methods - propagation through same-class calls like
$this->foo(),self::foo(),static::foo() - propagation through inter-class calls when the callee already has
@throws
Current MVP scope:
- class methods only
- inter-class propagation relies on existing callee docblocks
- repeated Rector runs can gradually converge the call graph across files
- caught exceptions inside
try/catchare not propagated - unchecked/wide exceptions are skipped by default
- existing
@throwstags are preserved and deduplicated - no removal of stale
@throwstags yet
Install
Configure
If you want to include unchecked exceptions too:
When phpstanConfig() is provided, the rule reuses PHPStan checked/unchecked exception policy. The local EXCLUDED_EXCEPTION_CLASSES list is applied on top.
Example
becomes
All versions of annotate_throws_rector with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
nikic/php-parser Version ^4.19.4 || ^5.1
phpstan/phpstan Version ^2.1.5
rector/rector Version ^2.1.4
symplify/rule-doc-generator-contracts Version ^11.2
nikic/php-parser Version ^4.19.4 || ^5.1
phpstan/phpstan Version ^2.1.5
rector/rector Version ^2.1.4
symplify/rule-doc-generator-contracts Version ^11.2
The package savinmikhail/annotate_throws_rector contains the following files
Loading the files please wait ...