定制 misterspelik/phpstan-yii2 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

misterspelik/phpstan-yii2

最新稳定版本:1.0.0

Composer 安装命令:

composer require misterspelik/phpstan-yii2

包简介

Yii2 extension for PHPStan

README 文档

README

Minimum PHP Version Latest Stable Version Build Status Total Downloads License

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 24
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-09