Releases: deprecated-packages/symplify
Released Symplify 10.1
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
Released ECS 9.4.25
Relesed Version 3.0-RC5
Added
- #480 [CodingStandard] add
RemoveSuperfluousDocBlockWhitespaceFixer
, which removes 2 spaces in a row in doc blocks - #481 [EasyCodingStandard] add warning as error support, to make useful already existing Sniffs, closes #477
Changed
-
#484 [Statie] add dry-run optiont to
StatieApplication
andBeforeRenderEvent
to improve extendability, closes #483 -
9a9c0e6 [Statie] use
statie.yml
config based on Symfony DI over "fake"statie.neon
to prevent confusion, closes #487Before
# statie.neon includes: - source/data/config.neon
After
# statie.yml imports: - { resource: 'source/data/config.yml' }
Before
services: - class: App\TranslationProvider
After
services: App\TranslationProvider: ~
Removed
- #488 [CodingStandard] drop
PropertyAndConstantSeparationFixer
, usePhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer
instead
Full diff: v3.0.0-RC4...v3.0.0-RC5
Relesed Version 3.0-RC4
Added
- #475 [Statie] added support for generators
parameters:
generators:
# key name, it's nice to have for more informative error reports
posts:
# name of variable inside single such item
variable: post
# name of variable that contains all items
varbiale_global: posts
# directory, where to look for them
path: '_posts'
# which layout to use
layout: '_layouts/@post.latte'
# and url prefix, e.g. /blog/some-post.md
route_prefix: 'blog'
# an object that will wrap it's logic, you can add helper methods into it and use it in templates
object: 'Symplify\Statie\Renderable\File\PostFile'
-
9b154d9 [Statie] added
-vvv
CLI option for debug output -
#473 bump to Symfony 4
-
#466 [CodingStandard] added
Symplify\CodingStandard\Sniffs\DeadCode\UnusedPublicMethodSniff
-
#471 [EasyCodingStandard] various performance improvements
-
#473 [EasyCodingStandard] added
LineLimitSebastianBergmannDiffer
for nicer and compact diff outputs -
#437 [TokenRunner] improved
AbstractSimpleFixerTestCase
with clearly named methods
Changed
-
#475 [Statie] renamed
related_posts
filter torelated_items
with general usage (not only posts, but any other own generator element)Before
{var $relatedPosts = ($post|relatedPosts)}
After
{var $relatedPosts = ($post|relatedItems)}
-
#473 [CodingStandard] use ReflectionDocBlock for docblock analysis and modification
-
#474 [EasyCodingStandard] prefer diff report for changes over table report
-
#472 [EasyCodingStandard] improve
FileProcessorInterface
, improve performance viaCachedFileLoader
Removed
-
#475 [Statie] removed
postRoute
, onlyprefix
is now available per item in generator -
#476 [CodingStandard] dropped
NoInterfaceOnAbstractClassFixer
, not useful in practise
Full diff: v3.0.0-RC3...v3.0.0-RC4
Relesed Version 3.0-RC3
Added
- [CodingStandard]
ClassStringToClassConstantFixer
now covers classes with double slashes:SomeNamespace\\SomeClass
Full diff: v3.0.0-RC2...v3.0.0-RC3
Relesed Version 3.0-RC2
Added
-
0ab538b [CodingStandard] Added
BlankLineAfterStrictTypesFixer
-
#443 [EasyCodingStandard] Added smaller common configs for better
--level
usage -
#447 [EasyCodingStandard] Allow
-vvv
for ProgressBar + 27 % speed improvement -
#442 [PackageBuilder] Added
AutoloadFinder
to find nearest/vendor/autoload.php
-
#442 [PackageBuilder] Added
provideParameter()
andchangeParameter()
methods toParameterProvider
Changed
- 881577a [EasyCodingStandard] Removed
-checkers
suffix to make file naming consistent
Fixed
- #422 [EasyCodingStandard] Fix
skip_codes
option for--fix
run
Removed
- #443 [CodingStandard] Dropped
FinalTestCase
, useSlamCsFixer\FinalInternalClassFixer
instead - bc0cb09 [EasyCodingStandard]
php54.neon
set removed
...
Full diff: v3.0.0-RC1...v3.0.0-RC2
Relesed Version 3.0-RC1
Added
-
#385 [CodingStandard] Added
RequireFollowedByAbsolutePathFixer
-
#421 [CodingStandard] Added
ImportNamespacedNameFixer
-
#427 [CodingStandard] Added
RemoveUselessDocBlockFixer
-
#388 [EasyCodingStandard] Added support for ignoring particular sniff codes
-
#406 [EasyCodingStandard] Added support for ignoring particular codes and files, Thanks to @ostrolucky
-
#397 [EasyCodingStandard] Added validation to
exclude_checkers
option, Thanks to @mzstic -
#431 [PackageBuilder] Added
--level
shortcut helper builder
Changed
Removed
-
#417 [CodingStandard] Dropped
InjectToConstructorInjectionFixer
, use @rectorphp instead -
#419 [CodingStandard] Dropped
ControllerRenderMethodLimitSniff
andInvokableControllerSniff
, as related to SymbioticController -
#432 [CodingStandard] Dropped
NewClassSniff
, useNewWithBracesFixer
instead -
#430 [EasyCodingStandard] Dropped
--fixer-set
and--checker-set
options forshow
command -
#412 [PackageBuilder] Removed Nette related-features, make package mostly internall for Symplify
Full diff: v2.5.0...v3.0.0-RC1
Released version 2.0 RC3
Changed
- #155 bump min version to Symfony 3.3
Fixed
- #157 [CodingStandard] fix property docblock sniff for multiple annotations
- #164 [SymbioticController] fixed typo in nette application request event name, Thanks @lexinek
Removed
- #155 [AutoServiceRegistration] package deprecated
- Use @symfony 3.3 PSR-4 service autodiscovery: symfony/symfony#21289
- #155 [ControllerAutowire] package deprecated
- Use @symfony 3.3
AbstractController
symfony/symfony#22157 - Use @symfony 3.3 service PSR-4 autodiscovery: symfony/symfony#21289
- Use @symfony 3.3
- #155 [ServiceDefinitionDecorator] package deprecated
For more deprecation details see https://www.tomasvotruba.cz/blog/2017/05/29/symplify-packages-deprecations-brought-by-symfony-33/
Full diff: v2.0.0-RC2...v2.0.0-RC3
Released version 2.0 RC2
Added
-
#144 [CodingStandard] added new sniffs
Symplify\CodingStandard\Sniffs\Architecture\ForbiddenTraitSniff
Symplify\CodingStandard\Sniffs\Commenting\VarConstantCommentSniff
Symplify\CodingStandard\Sniffs\Controller\ControllerRenderMethodLimitSniff
Symplify\CodingStandard\Sniffs\Controller\InvokableControllerSniff
-
#149 [CodingStandard] added
Symplify\CodingStandard\Sniffs\Classes\EqualInterfaceImplementationSniff
-
#149 [CodingStandard] added
Symplify\CodingStandard\Sniffs\Debug\CommentedOutCodeSniff
-
#152 [CodingStandard] check for duplicated checker added - https://github.com/Symplify/Symplify/pull/152/files#diff-9c8034d27d44f02880909bfad4a7f853
-
#150 [Statie] decouple Latte related files to FlatWhite sub-package
Changed
- #151 [EasyCodingStandard] Nette\DI conControllerRenderMethodLimitSnifffig loading style added, parameters are now in Container and sniffs/fixers are registered as services
Fixed
- #142 [ControllerAutowire] prevent duplicated controller registraction
Removed
- #144 [CodingStandard] drop sniffs duplicated in 3rd party packages
Symplify\CodingStandard\Sniffs\Commenting\MethodCommentSniff
, replaced bySlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff
Symplify\CodingStandard\Sniffs\Commenting\MethodReturnTypeSniff
, replaced bySlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff
- #152 [CodingStandard] removed unused sniff
Symplify\CodingStandard\Sniffs\Commenting\ComponentFactoryCommentSniff
- #153 [SymfonySecurityVoters] package deprecated, for no practical use
Full diff: v2.0.0-RC1...v2.0.0-RC2
Released version 2.0 RC1
Changed
- badges improvements
Fixed
- fixed missing composer dependencies after subsplit
Full diff: v1.4.10...v2.0.0-RC1