Skip to content

Releases: symplify/phpstan-rules

Released PHPStan Rules 11.1 with PHP 7.2 support

08 Aug 21:34
Compare
Choose a tag to compare

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


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