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

v1.3.2 2024-12-18 12:57 UTC

This package is auto-updated.

Last update: 2024-12-18 12:57:40 UTC


README

Latest Stable Version Total Downloads License Continuous Integration

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)