shish / phpstan-safe-rule
A PHPStan rule to detect safety issues. Must be used in conjunction with shish/safe
Installs: 127
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 19
Type:phpstan-extension
Requires
- php: ^8.2
- nikic/php-parser: ^5.0
- phpstan/phpstan: ^1.0
- shish/safe: ^2.0
Requires (Dev)
- phpunit/phpunit: ^11.0
- squizlabs/php_codesniffer: ^3.4
Replaces
This package is auto-updated.
Last update: 2024-11-09 13:38:35 UTC
README
PHPStan rules for shish/safe
The shish/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 shish/safe
variant instead.
Please read shish/safe documentation for details about installation and usage.
(This is a fork of thecodingmachine/phpstan-safe-rule
, with added support for PHP 8)