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

1.0.0 2023-07-03 17:35 UTC

This package is auto-updated.

Last update: 2024-11-03 20:42:59 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