This repository has been archived by the owner on Dec 3, 2023. It is now read-only.
PHPStanRules
New Rules 🎉
- #3937 - Add NoMixedCallableRule
- #3913 - Add NoMixedMethodCallerRule
- #3912 - Add NoMixedPropertyFetcherRule
- #3865 - Add ForbiddenTraitUseRule
- #3861 - Add SwitchToMatchSpotterRule
- #3857 - Add NoReadonlyStaticVariableRule
Fixes 🔨
Removed Rules 🧹️
Some rule were very strict and while good as an idea, not very practical to use. To make the list of 140+ rules smaller and more practical, we've removed following rules:
- #3943 - Remove CheckReferencedClassInAnnotationRule, now we have attributes that are checked by PHPStan out of the box
- #3944 - Remove ForbiddenAttributteArgumentRule, extreemely narrow use case
- #3945 - Remove ForbiddenNestedForeachWithEmptyStatementRule, as not very helpful in pratice
- #3946 - Remove ForbiddenPrivateMethodByTypeRule as overly strict, complexity rule handles this well
- #3948 - Remove NoMaskWithoutSprintfRule, might be useful to use mask sometimes
- #3828 - Remove RequireQuoteStringValueSprintfRule, depends way too often on the context
- #3827 - Remove ForbiddenMethodCallOnTypeRule, used for single job
- #3826 - Remove ForbiddenBinaryMethodCallRule, used for single job
- #3824 - Remove RequireStringArgumentInMethodCallRule, used for single job
ECS
New Features 🎉
- #3898 - Add --memory-limit option to configure memory in parallel
Changes ⚙️
- #3927 - Drop show command, use --debug option instead
Merged Packages 🧑🤝🧑
Some packages were group of 5 claases, fractioned and mostly used with one other package. To ease the learnign curve from 2 packages to 1, we've merge them to single one:
SimplePhpDocParser is merged to Astral
- #3950 - Merge to Astral package, as close related purpose
How to upgrade?
composer remove symplify/simple-php-doc-parser
composer require symplify/astral
Update the namespace references:
-use Symplify\SimplePhpDocParser\...;
+use Symplify\Astral\PhpDocParser\...;
And you're done 👍
ConsoleColorDiff is merged to PackageBuilder
- #3940 - Merge to package builder package, to avoid fractioning
How to upgrade?
composer remove symplify/console-color-diff
composer require symplify/package-builder
Update the namespace references:
-use Symplify\ConsoleColorDiff\...;
+use Symplify\PackageBuilder\...;
And you're done 👍
SymfonyPhpConfig is merged to Rector
There was just one class, used in one service in Rector. It only makes sense to merge it directly in Rector:
- #3941 Deprecate, as just 1 helper class