thecodingmachine/phpstan-safe-rule
A PHPStan rule to detect safety issues. Must be used in conjunction with thecodingmachine/safe
Maintainers
Package info
github.com/thecodingmachine/phpstan-safe-rule
Type:phpstan-extension
pkg:composer/thecodingmachine/phpstan-safe-rule
Requires
- php: ^8.1
- nikic/php-parser: ^5
- phpstan/phpstan: ^2.1.11
- thecodingmachine/safe: ^1.2 || ^2.0 || ^3.0
Requires (Dev)
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^10.4
- squizlabs/php_codesniffer: ^3.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 5c804889253ce9498ef185e108e9f94b6023208e
- David NΓ©grier <d.negrier.woop@thecodingmachine.com>
README
π Latest Stable Version
π Total Downloads
π Latest Unstable Version
π License
π Build Status
π Coverage Status
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.
