zorac/phpstan-php-di

Extansion adding support for PHP-DI to PHPStan.

Installs: 12 448

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 0

Type:phpstan-extension

1.0.1 2024-12-24 11:33 UTC

This package is auto-updated.

Last update: 2025-02-24 12:00:47 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