2017 © Pedro Peláez
 

library phpstan-yii2

Yii2 extension for PHPStan

image

proget-hq/phpstan-yii2

Yii2 extension for PHPStan

  • Monday, July 16, 2018
  • by itcraftsmanpl
  • Repository
  • 1 Watchers
  • 1 Stars
  • 607 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 95 % Grown

The README.md

Yii2 extension for PHPStan

Minimum PHP Version Latest Stable Version Build Status Total Downloads License, (*1)

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 proget-hq/phpstan-yii2

Configuration

Put this into your phpstan.neon config:, (*2)

includes:
    - vendor/proget-hq/phpstan-yii2/extension.neon
parameters:
    yii2:
        config_path: %rootDir%/../../../config/test.php

Limitations

Container closures must have return types., (*3)

You have to provide a path to config/test.php or other yii2 config file., (*4)

The Versions

16/07 2018

dev-master

9999999-dev

Yii2 extension for PHPStan

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Arkadiusz Kondas

16/07 2018

0.3.0

0.3.0.0

Yii2 extension for PHPStan

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Arkadiusz Kondas

09/03 2018

0.2.0

0.2.0.0

Yii2 extension for PHPStan

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Arkadiusz Kondas

06/03 2018

0.1.0

0.1.0.0

Yii2 extension for PHPStan

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Arkadiusz Kondas