Skip to content

zorac/phpstan-php-di

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPStan PHP-DI

Software license PHP version Latest release

A PHPStan extension to support PHP-DI.

Features

  • Instance properties with a PHP-DI #[Inject] attribute will be recognized as always written.

Installation

First, install the package via composer as a development dependency:

composer require --dev zorac/phpstan-php-di

Then add the extension to the includes sectiopn of your phpstan.neon:

includes:
  - ./vendor/zorac/phpstan-php-di/extension.neon