selrahcd/phpstan-rules
Composer 安装命令:
composer require selrahcd/phpstan-rules
包简介
Set of PHPStan rules
README 文档
README
A set of useful PHPStan rules
Installation
To use this extension, require it in Composer:
composer require --dev selrahcd/phpstan-rules
If you also install phpstan/extension-installer then you're all set!
Manual installation
If you don't want to use phpstan/extension-installer, include extension.neon in your project's PHPStan config:
includes:
- vendor/phpstan/phpstan-mockery/extension.neon
Rules
DisallowIsArrayFunctionCall
A rule that prevents from using \is_array.
CountFuncCallUsage
A configurable rule that prevents from using more function calls than we already do.
Configure:
parameters:
watched_funcCalls:
watched:
'\is_array': 4
Will warn you if you start using more than 4 calls to \is_array.
You can add as many functions to watch as you want.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-13