misterspelik/phpstan-yii2
最新稳定版本:1.0.0
Composer 安装命令:
composer require misterspelik/phpstan-yii2
包简介
Yii2 extension for PHPStan
README 文档
README
What does it do?
- Provides correct return type for
Yii::$container->get('service_id')method, - Provides correct methods and properties for
Yii::$app->request - Ignore common problems with response objects (to be removed).
Compatibility
| PHPStan version | Yii2 extension version |
|---|---|
| 2.x | 1.x |
| 1.x | 0.8.x |
| 0.12 | 0.7.x |
| 0.11 | 0.5.x - 0.6.x |
| 0.10.3 | 0.4.x |
| 0.10 | 0.3.0 |
| 0.9.2 | 0.2.0 |
Installation
composer require --dev misterspelik/phpstan-yii2
Configuration
Put this into your phpstan.neon config:
includes: - vendor/misterspelik/phpstan-yii2/extension.neon parameters: yii2: config_path: %rootDir%/../../../config/test.php
Limitations
Container closures must have return types.
You have to provide a path to config/test.php or other yii2 config file.
统计信息
- 总下载量: 2.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-09