composer-stager icon indicating copy to clipboard operation
composer-stager copied to clipboard

Evaluate the thecodingmachine/phpstan-strict-rules dev dependency

Open TravisCarden opened this issue 2 years ago • 0 comments

  • Part of https://github.com/php-tuf/composer-stager/issues/78.
Dependency thecodingmachine/phpstan-strict-rules
Description A set of additional rules for PHPStan based on best practices followed at TheCodingMachine
Value/justification High: In addition to various defensive programming rules, it enforces important error-handling standards.
Usage/popularity Medium. Currently over 2.7M installs and 250 dependents on Packagist.
Security policy Apparently none. Requested one at https://github.com/thecodingmachine/phpstan-strict-rules/issues/65.
Maintainance Not especially active but stable. Latest release, v1.0.0, in November, 2021.
Considerations It catches a mistake made several times in the early days of Composer Stager development of not including a caught exception via the $previous argument in a try...catch block, losing important debugging information.

Dependency tree

$ composer info --tree thecodingmachine/phpstan-strict-rules
thecodingmachine/phpstan-strict-rules v1.0.0 A set of additional rules for PHPStan based on best practices followed at TheCodingMachine
|--php ^7.1|^8.0
`--phpstan/phpstan ^1.0
   `--php ^7.2|^8.0

TravisCarden avatar Mar 03 '23 16:03 TravisCarden