thecodingmachine / phpstan-safe-rule
A PHPStan rule to detect safety issues. Must be used in conjunction with thecodingmachine/safe
Installs: 6 856 599
Dependents: 271
Suggesters: 3
Security: 0
Stars: 55
Watchers: 7
Forks: 23
Open Issues: 6
Type:phpstan-extension
Requires
- php: ^7.1 || ^8.0
- phpstan/phpstan: ^1.0
- thecodingmachine/safe: ^1.0 || ^2.0
Requires (Dev)
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^7.5.2 || ^8.0
- squizlabs/php_codesniffer: ^3.4
This package is auto-updated.
Last update: 2024-12-02 12:44:00 UTC
README
PHPStan rules for thecodingmachine/safe
The thecodingmachine/safe package provides a set of core PHP functions rewritten to throw exceptions instead of returning false
when an error is encountered.
This PHPStan rule will help you detect unsafe function call and will propose you to use the thecodingmachine/safe
variant instead.
Please read thecodingmachine/safe documentation for details about installation and usage.