PHPStanRules
New Rules 🎉
- https://github.com/symplify/symplify/pull/3937 - Add NoMixedCallableRule
- https://github.com/symplify/symplify/pull/3913 - Add NoMixedMethodCallerRule
- https://github.com/symplify/symplify/pull/3912 - Add NoMixedPropertyFetcherRule
- https://github.com/symplify/symplify/pull/3865 - Add ForbiddenTraitUseRule
- https://github.com/symplify/symplify/pull/3861 - Add SwitchToMatchSpotterRule
- https://github.com/symplify/symplify/pull/3857 - Add NoReadonlyStaticVariableRule
Fixes 🔨
- https://github.com/symplify/symplify/pull/3932 - RequireNamedCommandRule - AsCommand attribute support - thanks @raneomik
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:
- https://github.com/symplify/symplify/pull/3943 - Remove CheckReferencedClassInAnnotationRule, now we have attributes that are checked by PHPStan out of the box
- https://github.com/symplify/symplify/pull/3944 - Remove ForbiddenAttributteArgumentRule, extreemely narrow use case
- https://github.com/symplify/symplify/pull/3945 - Remove ForbiddenNestedForeachWithEmptyStatementRule, as not very helpful in pratice
- https://github.com/symplify/symplify/pull/3946 - Remove ForbiddenPrivateMethodByTypeRule as overly strict, complexity rule handles this well
- https://github.com/symplify/symplify/pull/3948 - Remove NoMaskWithoutSprintfRule, might be useful to use mask sometimes
- https://github.com/symplify/symplify/pull/3828 - Remove RequireQuoteStringValueSprintfRule, depends way too often on the context
- https://github.com/symplify/symplify/pull/3827 - Remove ForbiddenMethodCallOnTypeRule, used for single job
- https://github.com/symplify/symplify/pull/3826 - Remove ForbiddenBinaryMethodCallRule, used for single job
- https://github.com/symplify/symplify/pull/3824 - Remove RequireStringArgumentInMethodCallRule, used for single job
ECS
New Features 🎉
- https://github.com/symplify/symplify/pull/3898 - Add --memory-limit option to configure memory in parallel
Changes ⚙️
- https://github.com/symplify/symplify/pull/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
- https://github.com/symplify/symplify/pull/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 :+1:
ConsoleColorDiff is merged to PackageBuilder
- https://github.com/symplify/symplify/pull/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 :+1:
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:
- https://github.com/symplify/symplify/pull/3941 Deprecate, as just 1 helper class
Source code(tar.gz)
Source code(zip)