temirkhan/phpstan-internal-rules
Composer 安装命令:
composer require temirkhan/phpstan-internal-rules
包简介
PHPStan rules to prevent prohibited usage of classes marked as @internal
README 文档
README
PHPStan rules to handle @internal tag, preventing prohibited usage of such classes
- Internal class instantiation
- Internal class or interface used as property type
- Inheritance from an internal class or interface
- Internal class method call(static, call_user_func and direct call)
- Internal trait usage
Usage
This is likely pretty much outdated since it was just a proof of concept.
You can give it a try by installing it via composer
composer require --dev temirkhan/phpstan-internal-rules
then add extension to your phpstan.neon.dist
includes: - vendor/temirkhan/phpstan-internal-rule/extension.neon
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2021-09-30