Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions config/sets/symfony/annotations-to-attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
use Rector\Config\RectorConfig;
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
use Rector\Php80\ValueObject\AnnotationToAttribute;
use Rector\Symfony\Set\SymfonySetList;

// @see https://symfony.com/blog/new-in-symfony-5-2-constraints-as-php-attributes
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([SymfonySetList::SYMFONY_52_VALIDATOR_ATTRIBUTES]);
$rectorConfig->sets([__DIR__ . '/symfony5/symfony52-validator-attributes.php']);

$rectorConfig->ruleWithConfiguration(AnnotationToAttributeRector::class, [
// @see https://symfony.com/blog/new-in-symfony-5-2-php-8-attributes
Expand Down
11 changes: 11 additions & 0 deletions config/sets/symfony/composer-based.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,17 @@
$privatesAccessor = new PrivatesAccessor();
$privatesAccessor->setPrivateProperty($scalarArrayObjectUnionType, 'types', $scalarArrayObjectUnionedTypes);

// symfony/form 2.7
$rectorConfig->ruleWithConfigurationComposerVersionBound(RenameMethodRector::class, [
// @see https://symfony.com/blog/new-in-symfony-2-7-form-and-validator-updates#deprecated-setdefaultoptions-in-favor-of-configureoptions
new MethodCallRename('Symfony\Component\Form\AbstractType', 'setDefaultOptions', 'configureOptions'),
], 'symfony/form', '>=2.7');

// symfony/options-resolver 2.7
$rectorConfig->ruleWithConfigurationComposerVersionBound(RenameClassRector::class, [
'Symfony\Component\OptionsResolver\OptionsResolverInterface' => 'Symfony\Component\OptionsResolver\OptionsResolver',
], 'symfony/options-resolver', '>=2.7');

// symfony/bridge-swift-mailer 3.0
$rectorConfig->ruleWithConfigurationComposerVersionBound(RenameClassRector::class, [
// swift mailer
Expand Down
16 changes: 0 additions & 16 deletions config/sets/symfony/symfony25.php

This file was deleted.

10 changes: 0 additions & 10 deletions config/sets/symfony/symfony26.php

This file was deleted.

22 changes: 0 additions & 22 deletions config/sets/symfony/symfony27.php

This file was deleted.

4 changes: 0 additions & 4 deletions config/sets/symfony/symfony28.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
use Rector\Arguments\Rector\ClassMethod\ReplaceArgumentDefaultValueRector;
use Rector\Arguments\ValueObject\ReplaceArgumentDefaultValue;
use Rector\Config\RectorConfig;
use Rector\Symfony\Symfony28\Rector\MethodCall\GetToConstructorInjectionRector;
use Rector\Symfony\Symfony28\Rector\StaticCall\ParseFileRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->rules([ParseFileRector::class, GetToConstructorInjectionRector::class]);

$rectorConfig->ruleWithConfiguration(ReplaceArgumentDefaultValueRector::class, [
// @see https://github.com/symfony/symfony/commit/912fc4de8fd6de1e5397be4a94d39091423e5188
new ReplaceArgumentDefaultValue(
Expand Down
23 changes: 0 additions & 23 deletions config/sets/symfony/symfony3/symfony30.php

This file was deleted.

This file was deleted.

52 changes: 0 additions & 52 deletions config/sets/symfony/symfony3/symfony30/symfony30-class-loader.php

This file was deleted.

13 changes: 0 additions & 13 deletions config/sets/symfony/symfony3/symfony30/symfony30-console.php

This file was deleted.

78 changes: 0 additions & 78 deletions config/sets/symfony/symfony3/symfony30/symfony30-form.php

This file was deleted.

31 changes: 0 additions & 31 deletions config/sets/symfony/symfony3/symfony30/symfony30-http-kernel.php

This file was deleted.

14 changes: 0 additions & 14 deletions config/sets/symfony/symfony3/symfony30/symfony30-process.php

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions config/sets/symfony/symfony3/symfony30/symfony30-security.php

This file was deleted.

14 changes: 0 additions & 14 deletions config/sets/symfony/symfony3/symfony30/symfony30-translation.php

This file was deleted.

12 changes: 0 additions & 12 deletions config/sets/symfony/symfony3/symfony30/symfony30-twig-bundle.php

This file was deleted.

Loading
Loading