Skip to content

Commit 7be85c5

Browse files
committed
Updated Rector to commit c4b68d5fd646875fa96f68941e4b2b643a06d1f8
rectorphp/rector-src@c4b68d5 [Php70] Handle class named Pool on Php4ConstructorRector (#6887)
1 parent 30e54ca commit 7be85c5

48 files changed

Lines changed: 511 additions & 168 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

vendor/composer/installed.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,12 +1866,12 @@
18661866
"source": {
18671867
"type": "git",
18681868
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
1869-
"reference": "37d320e78c4ea0a5e719b46e27abb6d8e9691da1"
1869+
"reference": "b719ac773f34f01f08f2d571c64d047c3517b75f"
18701870
},
18711871
"dist": {
18721872
"type": "zip",
1873-
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/37d320e78c4ea0a5e719b46e27abb6d8e9691da1",
1874-
"reference": "37d320e78c4ea0a5e719b46e27abb6d8e9691da1",
1873+
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/b719ac773f34f01f08f2d571c64d047c3517b75f",
1874+
"reference": "b719ac773f34f01f08f2d571c64d047c3517b75f",
18751875
"shasum": ""
18761876
},
18771877
"require": {
@@ -1900,7 +1900,7 @@
19001900
"tomasvotruba\/unused-public": "^2.0",
19011901
"tracy\/tracy": "^2.10"
19021902
},
1903-
"time": "2025-05-05T14:14:50+00:00",
1903+
"time": "2025-05-07T04:07:34+00:00",
19041904
"default-branch": true,
19051905
"type": "rector-extension",
19061906
"extra": {

vendor/composer/installed.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

vendor/rector/extension-installer/src/GeneratedConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
final class GeneratedConfig
1111
{
12-
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 826f808'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 2b141c8'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 4820350'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 37d320e'));
12+
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 826f808'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 2b141c8'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 4820350'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main b719ac7'));
1313
private function __construct()
1414
{
1515
}

vendor/rector/rector-symfony/config/sets/symfony/symfony6/symfony61.php

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,10 @@
44
namespace RectorPrefix202505;
55

66
use Rector\Config\RectorConfig;
7-
use Rector\Renaming\Rector\Name\RenameClassRector;
8-
use Rector\Symfony\Symfony61\Rector\Class_\CommandConfigureToAttributeRector;
9-
use Rector\Symfony\Symfony61\Rector\Class_\CommandPropertyToAttributeRector;
10-
use Rector\Symfony\Symfony61\Rector\Class_\MagicClosureTwigExtensionToNativeMethodsRector;
11-
use Rector\Symfony\Symfony61\Rector\StaticPropertyFetch\ErrorNamesPropertyToConstantRector;
127
# https://github.com/symfony/symfony/blob/6.1/UPGRADE-6.1.md
138
return static function (RectorConfig $rectorConfig) : void {
14-
$rectorConfig->rules([CommandConfigureToAttributeRector::class, CommandPropertyToAttributeRector::class, ErrorNamesPropertyToConstantRector::class, MagicClosureTwigExtensionToNativeMethodsRector::class]);
15-
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
16-
// @see https://github.com/symfony/symfony/pull/43982
17-
'Symfony\\Component\\Serializer\\Normalizer\\ContextAwareDenormalizerInterface' => 'Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface',
18-
'Symfony\\Component\\Serializer\\Normalizer\\ContextAwareNormalizerInterface' => 'Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface',
19-
// @see https://github.com/symfony/symfony/pull/45623
20-
'Symfony\\Component\\Validator\\Constraints\\ExpressionLanguageSyntax' => 'Symfony\\Component\\Validator\\Constraints\\ExpressionSyntax',
21-
'Symfony\\Component\\Validator\\Constraints\\ExpressionLanguageSyntaxValidator' => 'Symfony\\Component\\Validator\\Constraints\\ExpressionSyntaxValidator',
22-
]);
9+
$rectorConfig->import(__DIR__ . '/symfony61/symfony61-serializer.php');
10+
$rectorConfig->import(__DIR__ . '/symfony61/symfony61-validator.php');
11+
$rectorConfig->import(__DIR__ . '/symfony61/symfony61-console.php');
12+
$rectorConfig->import(__DIR__ . '/symfony61/symfony61-twig-bridge.php');
2313
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare (strict_types=1);
4+
namespace RectorPrefix202505;
5+
6+
use Rector\Config\RectorConfig;
7+
use Rector\Symfony\Symfony61\Rector\Class_\CommandConfigureToAttributeRector;
8+
use Rector\Symfony\Symfony61\Rector\Class_\CommandPropertyToAttributeRector;
9+
return static function (RectorConfig $rectorConfig) : void {
10+
$rectorConfig->rules([CommandConfigureToAttributeRector::class, CommandPropertyToAttributeRector::class]);
11+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
declare (strict_types=1);
4+
namespace RectorPrefix202505;
5+
6+
use Rector\Config\RectorConfig;
7+
use Rector\Renaming\Rector\Name\RenameClassRector;
8+
return static function (RectorConfig $rectorConfig) : void {
9+
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
10+
// @see https://github.com/symfony/symfony/pull/43982
11+
'Symfony\\Component\\Serializer\\Normalizer\\ContextAwareDenormalizerInterface' => 'Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface',
12+
'Symfony\\Component\\Serializer\\Normalizer\\ContextAwareNormalizerInterface' => 'Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface',
13+
]);
14+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
declare (strict_types=1);
4+
namespace RectorPrefix202505;
5+
6+
use Rector\Config\RectorConfig;
7+
use Rector\Symfony\Symfony61\Rector\Class_\MagicClosureTwigExtensionToNativeMethodsRector;
8+
return static function (RectorConfig $rectorConfig) : void {
9+
$rectorConfig->rule(MagicClosureTwigExtensionToNativeMethodsRector::class);
10+
};
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
declare (strict_types=1);
4+
namespace RectorPrefix202505;
5+
6+
use Rector\Config\RectorConfig;
7+
use Rector\Renaming\Rector\Name\RenameClassRector;
8+
use Rector\Symfony\Symfony61\Rector\StaticPropertyFetch\ErrorNamesPropertyToConstantRector;
9+
return static function (RectorConfig $rectorConfig) : void {
10+
$rectorConfig->rule(ErrorNamesPropertyToConstantRector::class);
11+
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
12+
// @see https://github.com/symfony/symfony/pull/45623
13+
'Symfony\\Component\\Validator\\Constraints\\ExpressionLanguageSyntax' => 'Symfony\\Component\\Validator\\Constraints\\ExpressionSyntax',
14+
'Symfony\\Component\\Validator\\Constraints\\ExpressionLanguageSyntaxValidator' => 'Symfony\\Component\\Validator\\Constraints\\ExpressionSyntaxValidator',
15+
]);
16+
};

vendor/rector/rector-symfony/config/sets/symfony/symfony6/symfony62.php

Lines changed: 11 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,7 @@
66
use Rector\Config\RectorConfig;
77
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
88
use Rector\Php80\ValueObject\AnnotationToAttribute;
9-
use Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector;
10-
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
11-
use Rector\Renaming\Rector\Name\RenameClassRector;
12-
use Rector\Renaming\ValueObject\MethodCallRename;
13-
use Rector\Renaming\ValueObject\RenameClassAndConstFetch;
14-
use Rector\Symfony\Symfony62\Rector\Class_\MessageHandlerInterfaceToAttributeRector;
15-
use Rector\Symfony\Symfony62\Rector\Class_\MessageSubscriberInterfaceToAttributeRector;
16-
use Rector\Symfony\Symfony62\Rector\Class_\SecurityAttributeToIsGrantedAttributeRector;
17-
use Rector\Symfony\Symfony62\Rector\ClassMethod\ClassMethod\ArgumentValueResolverToValueResolverRector;
18-
use Rector\Symfony\Symfony62\Rector\ClassMethod\ParamConverterAttributeToMapEntityAttributeRector;
19-
use Rector\Symfony\Symfony62\Rector\MethodCall\SimplifyFormRenderingRector;
209
return static function (RectorConfig $rectorConfig) : void {
21-
$rectorConfig->rules([
22-
SimplifyFormRenderingRector::class,
23-
SecurityAttributeToIsGrantedAttributeRector::class,
24-
ParamConverterAttributeToMapEntityAttributeRector::class,
25-
// @see https://github.com/symfony/symfony/pull/47068, #[AsMessageHandler] attribute
26-
MessageHandlerInterfaceToAttributeRector::class,
27-
MessageSubscriberInterfaceToAttributeRector::class,
28-
// @see https://github.com/symfony/symfony/pull/47363
29-
ArgumentValueResolverToValueResolverRector::class,
30-
]);
3110
// change to attribute before rename
3211
// https://symfony.com/blog/new-in-symfony-6-2-built-in-cache-security-template-and-doctrine-attributes
3312
// @see https://github.com/rectorphp/rector-symfony/issues/535#issuecomment-1783983383
@@ -39,37 +18,15 @@
3918
// @see https://github.com/symfony/symfony/pull/46906
4019
new AnnotationToAttribute('Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Template'),
4120
]);
42-
// https://symfony.com/blog/new-in-symfony-6-2-built-in-cache-security-template-and-doctrine-attributes
43-
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
44-
// @see https://github.com/symfony/symfony/pull/46907
45-
'Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\IsGranted' => 'Symfony\\Component\\Security\\Http\\Attribute\\IsGranted',
46-
// @see https://github.com/symfony/symfony/pull/46880
47-
'Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Cache' => 'Symfony\\Component\\HttpKernel\\Attribute\\Cache',
48-
// @see https://github.com/symfony/symfony/pull/46906
49-
'Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Template' => 'Symfony\\Bridge\\Twig\\Attribute\\Template',
50-
// @see https://github.com/symfony/symfony/pull/46714
51-
'Symfony\\Component\\Mailer\\Bridge\\OhMySmtp\\Transport\\OhMySmtpApiTransport' => 'Symfony\\Component\\Mailer\\Bridge\\MailPace\\Transport\\MailPaceApiTransport',
52-
'Symfony\\Component\\Mailer\\Bridge\\OhMySmtp\\Transport\\OhMySmtpSmtpTransport' => 'Symfony\\Component\\Mailer\\Bridge\\MailPace\\Transport\\MailPaceSmtpTransport',
53-
'Symfony\\Component\\Mailer\\Bridge\\OhMySmtp\\Transport\\OhMySmtpTransportFactory' => 'Symfony\\Component\\Mailer\\Bridge\\MailPace\\Transport\\MailPaceTransportFactory',
54-
// @see https://github.com/symfony/symfony/pull/47363
55-
'Symfony\\Component\\HttpKernel\\Controller\\ArgumentValueResolverInterface' => 'Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface',
56-
// @see https://github.com/symfony/symfony/pull/46094
57-
'Symfony\\Component\\Security\\Core\\Security' => 'Symfony\\Bundle\\SecurityBundle\\Security',
58-
// @see https://github.com/symfony/symfony/pull/46161
59-
'Symfony\\Component\\Translation\\Extractor\\PhpAstExtractor' => 'Symfony\\Component\\Translation\\Extractor\\PhpAstExtractor',
60-
// @see https://github.com/symfony/symfony/pull/47595
61-
'Symfony\\Component\\HttpFoundation\\ExpressionRequestMatcher' => 'Symfony\\Component\\HttpFoundation\\RequestMatcher\\ExpressionRequestMatcher',
62-
'Symfony\\Component\\HttpFoundation\\RequestMatcher' => 'Symfony\\Component\\HttpFoundation\\ChainRequestMatcher',
63-
]);
64-
$rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [
65-
// @see https://github.com/symfony/symfony/pull/46854
66-
new MethodCallRename('Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController', 'renderForm', 'render'),
67-
// @see https://github.com/symfony/symfony/pull/45034
68-
new MethodCallRename('Symfony\\Component\\HttpFoundation\\Request', 'getContentType', 'getContentTypeFormat'),
69-
// @see https://github.com/symfony/symfony/pull/47711
70-
new MethodCallRename('Symfony\\Component\\Mime\\Email', 'attachPart', 'addPart'),
71-
]);
72-
// @see https://github.com/symfony/symfony/pull/46094
73-
// @see https://github.com/symfony/symfony/pull/48554
74-
$rectorConfig->ruleWithConfiguration(RenameClassConstFetchRector::class, [new RenameClassAndConstFetch('Symfony\\Component\\Security\\Core\\Security', 'ACCESS_DENIED_ERROR', 'Symfony\\Component\\Security\\Http\\SecurityRequestAttributes', 'ACCESS_DENIED_ERROR'), new RenameClassAndConstFetch('Symfony\\Component\\Security\\Core\\Security', 'AUTHENTICATION_ERROR', 'Symfony\\Component\\Security\\Http\\SecurityRequestAttributes', 'AUTHENTICATION_ERROR'), new RenameClassAndConstFetch('Symfony\\Component\\Security\\Core\\Security', 'LAST_USERNAME', 'Symfony\\Component\\Security\\Http\\SecurityRequestAttributes', 'LAST_USERNAME'), new RenameClassAndConstFetch('Symfony\\Component\\Security\\Core\\Security', 'MAX_USERNAME_LENGTH', 'Symfony\\Component\\Security\\Http\\Authenticator\\Passport\\Badge\\UserBadge', 'MAX_USERNAME_LENGTH')]);
21+
$rectorConfig->import(__DIR__ . '/symfony62/symfony62-security-core.php');
22+
$rectorConfig->import(__DIR__ . '/symfony62/symfony62-security-http.php');
23+
$rectorConfig->import(__DIR__ . '/symfony62/symfony62-mime.php');
24+
$rectorConfig->import(__DIR__ . '/symfony62/symfony62-http-kernel.php');
25+
$rectorConfig->import(__DIR__ . '/symfony62/symfony62-framework-bundle.php');
26+
$rectorConfig->import(__DIR__ . '/symfony62/symfony62-http-foundation.php');
27+
$rectorConfig->import(__DIR__ . '/symfony62/symfony62-twig-bridge.php');
28+
$rectorConfig->import(__DIR__ . '/symfony62/symfony62-translation.php');
29+
$rectorConfig->import(__DIR__ . '/symfony62/symfony62-doctrine-bridge.php');
30+
$rectorConfig->import(__DIR__ . '/symfony62/symfony62-messenger.php');
31+
$rectorConfig->import(__DIR__ . '/symfony62/symfony62-mail-pace-mailer.php');
7532
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
declare (strict_types=1);
4+
namespace RectorPrefix202505;
5+
6+
use Rector\Config\RectorConfig;
7+
use Rector\Symfony\Symfony62\Rector\ClassMethod\ParamConverterAttributeToMapEntityAttributeRector;
8+
return static function (RectorConfig $rectorConfig) : void {
9+
$rectorConfig->rule(ParamConverterAttributeToMapEntityAttributeRector::class);
10+
};

0 commit comments

Comments
 (0)