zorac/phpstan-php-di

Extansion adding support for PHP-DI to PHPStan.

Installs: 2 305

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:phpstan-extension

1.0.0 2023-07-03 17:35 UTC

This package is auto-updated.

Last update: 2024-05-03 19:35:33 UTC


README

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