shish / phpstan-safe-rule
A PHPStan rule to detect safety issues. Must be used in conjunction with shish/safe
Installs: 1 293
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 24
Type:phpstan-extension
Requires
- php: ^8.2
- nikic/php-parser: ^5.0
- phpstan/phpstan: ^1.0
- shish/safe: *
Requires (Dev)
- phpunit/phpunit: ^11.0
- squizlabs/php_codesniffer: ^3.4
Replaces
This package is auto-updated.
Last update: 2024-12-18 12:57:40 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)