thecodingmachine/phpstan-safe-rule

A PHPStan rule to detect safety issues. Must be used in conjunction with thecodingmachine/safe

Package info

github.com/thecodingmachine/phpstan-safe-rule

Type:phpstan-extension

pkg:composer/thecodingmachine/phpstan-safe-rule

Statistics

Installs: 10 196 907

Dependents: 313

Suggesters: 3

Stars: 62

Open Issues: 3

v1.4.3 2025-11-21 09:41 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 5c804889253ce9498ef185e108e9f94b6023208e

  • David NΓ©grier <d.negrier.woop@thecodingmachine.com>

README

πŸ‘ Latest Stable Version
πŸ‘ Total Downloads
πŸ‘ Latest Unstable Version
πŸ‘ License
πŸ‘ Build Status
πŸ‘ Coverage Status

PHPStan rules for thecodingmachine/safe

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.