thecodingmachine/phpstan-safe-rule
PHPStan rule set that flags calls to “unsafe” PHP functions that can return false on failure and suggests using the thecodingmachine/safe equivalents that throw exceptions, helping enforce safer, exception-based error handling in your codebase.
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.
How can I help you explore Laravel packages today?