Symplify Versions Save

[DISCONTINUED] Check split packages in their own repositories :)

10.1.0

2 years ago

PHPStanRules

New Rules ๐ŸŽ‰

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:


ECS

New Features ๐ŸŽ‰

Changes โš™๏ธ


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

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

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:

9.4.25

2 years ago

ECS

Bugfixes :bug:

  • https://github.com/symplify/symplify/issues/3424 - Fix running custom sniff/fixer tests - in previous versions, AbstractCheckerTestCase was broken and unable to run due to missing prefixed classes - now tests are back and running - thanks @enumag and @ERuban for help with reproducing this bug

v3.0.0-RC5

6 years ago

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 and BeforeRenderEvent to improve extendability, closes #483

  • https://github.com/Symplify/Symplify/commit/9a9c0e61d0b7af073d3819e4c4798a251eca1f14 [Statie] use statie.yml config based on Symfony DI over "fake" statie.neon to prevent confusion, closes #487

    Before

    # 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, use PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer instead

Full diff: https://github.com/Symplify/Symplify/compare/v3.0.0-RC4...v3.0.0-RC5

v3.0.0-RC4

6 years ago

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' 
  • https://github.com/Symplify/Symplify/commit/9b154d9b6e88075e14b6812613bce7c1a2a79daa [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 to related_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 via CachedFileLoader

Removed

  • #475 [Statie] removed postRoute, only prefix is now available per item in generator

  • #476 [CodingStandard] dropped NoInterfaceOnAbstractClassFixer, not useful in practise

Full diff: https://github.com/Symplify/Symplify/compare/v3.0.0-RC3...v3.0.0-RC4

v3.0.0-RC3

6 years ago

Added

  • [CodingStandard] ClassStringToClassConstantFixer now covers classes with double slashes: SomeNamespace\\SomeClass

Full diff: https://github.com/Symplify/Symplify/compare/v3.0.0-RC2...v3.0.0-RC3

v3.0.0-RC2

6 years ago

Added

  • 0ab538bd53c971f6a7163485230a44658f613768 [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() and changeParameter() methods to ParameterProvider

Changed

  • 881577af893ed1e73260f713153004be78aaf101 [EasyCodingStandard] Removed -checkers suffix to make file naming consistent

Fixed

  • #422 [EasyCodingStandard] Fix skip_codes option for --fix run

Removed

  • #443 [CodingStandard] Dropped FinalTestCase, use SlamCsFixer\FinalInternalClassFixer instead
  • bc0cb09d5e5166830ba4ad95fd4d0ba8f4bcacf4 [EasyCodingStandard] php54.neon set removed

...

Full diff: https://github.com/Symplify/Symplify/compare/v3.0.0-RC1...v3.0.0-RC2

v3.0.0-RC1

6 years ago

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

  • #399 [Statie] Filter similarPosts renamed to relatedPosts, closes #386

Removed

  • #417 [CodingStandard] Dropped InjectToConstructorInjectionFixer, use @RectorPHP instead

  • #419 [CodingStandard] Dropped ControllerRenderMethodLimitSniff and InvokableControllerSniff, as related to SymbioticController

  • #432 [CodingStandard] Dropped NewClassSniff, use NewWithBracesFixer instead

  • #430 [EasyCodingStandard] Dropped --fixer-set and --checker-set options for show command

  • #412 [PackageBuilder] Removed Nette related-features, make package mostly internall for Symplify

  • #404 [SymbioticController] package deprecated, closes #402

Full diff: https://github.com/Symplify/Symplify/compare/v2.5.0...v3.0.0-RC1

v2.0.0-RC3

6 years ago

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

For more deprecation details see https://www.tomasvotruba.cz/blog/2017/05/29/symplify-packages-deprecations-brought-by-symfony-33/

Full diff: https://github.com/Symplify/Symplify/compare/v2.0.0-RC2...v2.0.0-RC3

v2.0.0-RC2

6 years ago

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 by SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff
    • Symplify\CodingStandard\Sniffs\Commenting\MethodReturnTypeSniff, replaced by SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff
  • #152 [CodingStandard] removed unused sniff Symplify\CodingStandard\Sniffs\Commenting\ComponentFactoryCommentSniff
  • #153 [SymfonySecurityVoters] package deprecated, for no practical use

Full diff: https://github.com/Symplify/Symplify/compare/v2.0.0-RC1...v2.0.0-RC2

v2.0.0-RC1

6 years ago

Changed

  • badges improvements

Fixed

  • fixed missing composer dependencies after subsplit

Full diff: https://github.com/Symplify/Symplify/compare/v1.4.10...v2.0.0-RC1