Registry / utility / rector-phpstan-rules

rector-phpstan-rules

JSON →
library0.7.6phppackagistunverified

PHPStan rules for Rector projects - with focus on static reflection and Rector design patterns

composer require rector/phpstan-rules
INSTALL
IMPORT
SIG · RECTOR-PHPSTAN-RUL
R
rector-phpstan-rules
utilityphpv0.7.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NoInstanceOfStaticReflectionRule
use Rector\PHPStanRules\Rule\NoInstanceOfStaticReflectionRule;

Use PHPStan rule for static reflection

use Rector\PHPStanRules\Rule\NoInstanceOfStaticReflectionRule; $rule = new NoInstanceOfStaticReflectionRule(); // Use in PHPStan configuration
Debug
Known issues
breakingRequires PHPStan 1.0+
fix
Install phpstan/phpstan version 1.0 or higher
affects: >=0.7
Upgrade
Version history
0.7.6latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
rector-phpstan-rules — pip install rector-phpstan-rules · libregistry