https://github.com/thecodingmachine/phpstan-safe-rule
A PHPStan rule to be used with the thecodingmachine/safe package
https://github.com/thecodingmachine/phpstan-safe-rule
Last synced: 8 months ago
JSON representation
A PHPStan rule to be used with the thecodingmachine/safe package
- Host: GitHub
- URL: https://github.com/thecodingmachine/phpstan-safe-rule
- Owner: thecodingmachine
- Created: 2018-09-06T14:34:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-09T20:30:35.000Z (10 months ago)
- Last Synced: 2025-05-11T16:17:43.953Z (9 months ago)
- Language: PHP
- Size: 102 KB
- Stars: 58
- Watchers: 6
- Forks: 23
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/thecodingmachine/phpstan-safe-rule)
[](https://packagist.org/packages/thecodingmachine/phpstan-safe-rule)
[](https://packagist.org/packages/thecodingmachine/phpstan-safe-rule)
[](https://packagist.org/packages/thecodingmachine/phpstan-safe-rule)
[](https://travis-ci.org/thecodingmachine/phpstan-safe-rule)
[](https://coveralls.io/github/thecodingmachine/phpstan-safe-rule?branch=master)
PHPStan rules for thecodingmachine/safe
=======================================
The [thecodingmachine/safe](https://github.com/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](https://github.com/thecodingmachine/safe) for details about installation and usage.