Released PHPStan Rules 11.1 with PHP 7.2 support
This release is using downgrade-package approach, so instead of PHP 8.0, you can be as low as PHP 7.2 and make use of 100+ PHPStan rules there are.
Decoupling from Astral package 🥳
This allowed the downgrade, as we needed the /src
to be fully downgradable, without any external PHP 8.0 dependency
- deprecated-packages/symplify#4318 - [PHPStanRules] Avoid using value resolver, make use of PHPStan scope type instead
- deprecated-packages/symplify#4319 - [PHPConfigPrinter] Move value resolver to scope->getType()
- deprecated-packages/symplify#4320 - [PHPStanRules] Various cleanups of Astral
- deprecated-packages/symplify#4315 - [PHPStanRules] Add SeePhpDocTagNodesFinder
- deprecated-packages/symplify#4314 - [PHPStanExtensions] Remove useless deps on Astral
- deprecated-packages/symplify#4312 - [PHPStanRules] Remove dependency on TypeChecker
- deprecated-packages/symplify#4313 - [PHPStanRules] Move ContainsTypeAnalyser here
Removed Rules 💀
While at it, we did cleaning of rules that were mostly designed for single spot in code-review once time in history. These rules were not practical and only cluttered the whole rule overview. Also we found few duplicates. Now the ruleset is more concise and eaiser to search through 👍
- deprecated-packages/symplify#4321 - [PHPStanRules] Remove dependency on symplify/package-builder, remove couple of very specific not practical rules - NoMagicClosureRule, NoBinaryOpCallCompareRule, NoGetRepositoryOutsideConstructorRule, RequireConstantInAttributeArgumentRule, RequireStringArgumentInConstructorRule, ValueObjectDestructRule