zonuexe / phpstan-safe-rule-simple
A PHPStan rule to detect safety issues. Must be used in conjunction with thecodingmachine/safe
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 24
Type:phpstan-extension
pkg:composer/zonuexe/phpstan-safe-rule-simple
Requires
- php: ^7.1 || ^8.0
- phpstan/phpstan: >=1.9.14
- thecodingmachine/safe: ^1.3 || ^2.4
Requires (Dev)
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^7.5.2 || ^8.0
- squizlabs/php_codesniffer: ^3.4
Replaces
This package is auto-updated.
Last update: 2025-10-24 15:10:57 UTC
README
Note This fork shrinks the dependent version of thecodingmachine/phpstan-safe-rule to provide a pure rule with the
DynamicFunctionReturnTypeExtensionremoved.
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.