[DISCONTINUED] Check split packages in their own repositories :)
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:
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:
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:
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:
There was just one class, used in one service in Rector. It only makes sense to merge it directly in Rector:
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 bugRemoveSuperfluousDocBlockWhitespaceFixer
, which removes 2 spaces in a row in doc blocks#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: ~
PropertyAndConstantSeparationFixer
, use PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer
insteadFull diff: https://github.com/Symplify/Symplify/compare/v3.0.0-RC4...v3.0.0-RC5
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
#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
#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
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
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
-checkers
suffix to make file naming consistentskip_codes
option for --fix
runFinalTestCase
, use SlamCsFixer\FinalInternalClassFixer
insteadphp54.neon
set removed...
Full diff: https://github.com/Symplify/Symplify/compare/v3.0.0-RC1...v3.0.0-RC2
#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
similarPosts
renamed to relatedPosts
, closes #386#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
AbstractController
symfony/symfony#22157_instanceof
@Symfony 3.3: https://symfony.com/blog/new-in-symfony-3-3-simpler-service-configuration#interface-based-service-configuration
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
#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
Symplify\CodingStandard\Sniffs\Commenting\MethodCommentSniff
, replaced by SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff
Symplify\CodingStandard\Sniffs\Commenting\MethodReturnTypeSniff
, replaced by SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff
Symplify\CodingStandard\Sniffs\Commenting\ComponentFactoryCommentSniff
Full diff: https://github.com/Symplify/Symplify/compare/v2.0.0-RC1...v2.0.0-RC2
Full diff: https://github.com/Symplify/Symplify/compare/v1.4.10...v2.0.0-RC1