zorac / phpstan-php-di
Extansion adding support for PHP-DI to PHPStan.
Installs: 6 017
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:phpstan-extension
Requires
- php: ^8.0
- php-di/php-di: ^7.0
- phpstan/phpstan: ^1.10
README
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