LaravelPackages.net
Acme Inc.
Toggle sidebar
miserenkov/phpstan-yii2-laravel

Yii2 extension for PHPStan with Laravel proxy

8
0
v1.1.1
About miserenkov/phpstan-yii2-laravel

miserenkov/phpstan-yii2-laravel is a Laravel package for yii2 extension for phpstan with laravel proxy. It currently has 0 GitHub stars and 8 downloads on Packagist (latest version v1.1.1). Install it with composer require miserenkov/phpstan-yii2-laravel. Discover more Laravel packages by miserenkov or browse all Laravel packages to compare alternatives.

Last updated

Yii2 extension for PHPStan

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 | |-----------------|------------------------| | 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 miserenkov/phpstan-yii2-laravel

Configuration

Put this into your phpstan.neon config:

includes: - vendor/miserenkov/phpstan-yii2-laravel/extension.neon parameters: yii2: application_id: api

Limitations

Container closures must have return types.

You have to provide config for yii application in laravel application in key yii.{application_id}

Comments