Skip to content

Releases: symplify/phpstan-rules

13.0.0

13 Jun 02:31
Compare
Choose a tag to compare

Added Rules 🥳


What's Changed 🔨


Removed 💀

Few rules seemed like too pedantic in practice, I always ignored them in most projects. Time to let go to make this set more practical:

  • Remove NoMissingDirPathRule, as often not clear if target file or required file path by @TomasVotruba in #129
  • Remove NoAbstractMethodRule as way too opinionated by @TomasVotruba in #121
  • Remove ForbiddenSameNamedNewInstanceRule as rarely a buggy spot by @TomasVotruba in #123
  • Remove NoVoidGetterMethodRule as not that practical by @TomasVotruba in #125
  • Remove NoEmptyClassRule, as rarely true and already coverd by class-leak by @TomasVotruba in #124
  • Remove NoShortNameRule, as devs are educated and not a thing anymore by @TomasVotruba in #127
  • Remove NoRelativeFilePathRule as more exceptoins by @TomasVotruba in #118
  • Remove RequireEnumDocBlockOnConstantListPassRule as reports many false positive, better shift to native enums by @TomasVotruba in #119
  • Remove NoDuplicatedShortClassNameRule as overly detailed by @TomasVotruba in #133
  • Remove NoNullableArrayPropertyRule as depends on use-case, cached etc by @TomasVotruba in #134
  • Remove BoolishClassMethodPrefixRule as very limited and often ignored by @TomasVotruba in #114
  • Remove NoProtectedClassElementRule as overly strict by @TomasVotruba in #115

Full Changelog: 12.5.0...13.0.0

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