Skip to content

Commit 423c118

Browse files
committed
Updated Rector to commit e2c8fc0e63931d1806f07c87cb0c3e98dc210ffa
rectorphp/rector-src@e2c8fc0 [Php85] Add missing url about openssl_pkey_derive arg deprecation (#7141)
1 parent a082637 commit 423c118

File tree

7 files changed

+26
-15
lines changed

7 files changed

+26
-15
lines changed

vendor/composer/installed.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,12 +1868,12 @@
18681868
"source": {
18691869
"type": "git",
18701870
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
1871-
"reference": "3e0e4aa981b50369216fd715a647ca8d12ff5265"
1871+
"reference": "8f7905fe0d2acb163a306933a4c9c302c15cf9cf"
18721872
},
18731873
"dist": {
18741874
"type": "zip",
1875-
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/3e0e4aa981b50369216fd715a647ca8d12ff5265",
1876-
"reference": "3e0e4aa981b50369216fd715a647ca8d12ff5265",
1875+
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/8f7905fe0d2acb163a306933a4c9c302c15cf9cf",
1876+
"reference": "8f7905fe0d2acb163a306933a4c9c302c15cf9cf",
18771877
"shasum": ""
18781878
},
18791879
"require": {
@@ -1903,7 +1903,7 @@
19031903
"tomasvotruba\/unused-public": "^2.0",
19041904
"tracy\/tracy": "^2.10"
19051905
},
1906-
"time": "2025-08-08T12:54:30+00:00",
1906+
"time": "2025-08-12T02:50:14+00:00",
19071907
"default-branch": true,
19081908
"type": "rector-extension",
19091909
"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 034ffe7'), '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 9a127bb'), '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 7f75f1d'), '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 3e0e4aa'));
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 034ffe7'), '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 9a127bb'), '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 7f75f1d'), '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 8f7905f'));
1313
private function __construct()
1414
{
1515
}

vendor/rector/rector-symfony/config/sets/symfony/symfony3/symfony32.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
declare (strict_types=1);
44
namespace RectorPrefix202508;
55

6-
use Rector\Arguments\Rector\ClassMethod\ReplaceArgumentDefaultValueRector;
7-
use Rector\Arguments\ValueObject\ReplaceArgumentDefaultValue;
86
use Rector\Config\RectorConfig;
97
return static function (RectorConfig $rectorConfig) : void {
108
$rectorConfig->import(__DIR__ . '/symfony32/symfony32-dependency-injection.php');

vendor/rector/rector-symfony/rules/CodeQuality/Rector/ClassMethod/ActionSuffixRemoverRector.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
use PhpParser\Node;
88
use PhpParser\Node\Identifier;
99
use PhpParser\Node\Stmt\ClassMethod;
10+
use PHPStan\Reflection\ClassReflection;
1011
use Rector\Rector\AbstractRector;
12+
use Rector\Reflection\ReflectionResolver;
1113
use Rector\Symfony\Bridge\NodeAnalyzer\ControllerMethodAnalyzer;
1214
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
1315
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
@@ -20,9 +22,14 @@ final class ActionSuffixRemoverRector extends AbstractRector
2022
* @readonly
2123
*/
2224
private ControllerMethodAnalyzer $controllerMethodAnalyzer;
23-
public function __construct(ControllerMethodAnalyzer $controllerMethodAnalyzer)
25+
/**
26+
* @readonly
27+
*/
28+
private ReflectionResolver $reflectionResolver;
29+
public function __construct(ControllerMethodAnalyzer $controllerMethodAnalyzer, ReflectionResolver $reflectionResolver)
2430
{
2531
$this->controllerMethodAnalyzer = $controllerMethodAnalyzer;
32+
$this->reflectionResolver = $reflectionResolver;
2633
}
2734
public function getRuleDefinition() : RuleDefinition
2835
{
@@ -62,6 +69,10 @@ public function refactor(Node $node) : ?Node
6269
if ($node->name->toString() === 'getAction') {
6370
return null;
6471
}
72+
$classReflection = $this->reflectionResolver->resolveClassReflection($node);
73+
if ($classReflection instanceof ClassReflection && $classReflection->hasNativeMethod(\rtrim($node->name->toString(), 'Action'))) {
74+
return null;
75+
}
6576
return $this->removeSuffix($node, 'Action');
6677
}
6778
private function removeSuffix(ClassMethod $classMethod, string $suffixToRemove) : ?ClassMethod

vendor/rector/rector-symfony/rules/Symfony73/Rector/Class_/AddVoteArgumentToVoteOnAttributeRector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use PhpParser\Node\Expr\Variable;
99
use PhpParser\Node\Name;
1010
use PhpParser\Node\Name\FullyQualified;
11+
use PhpParser\Node\NullableType;
1112
use PhpParser\Node\Param;
1213
use PhpParser\Node\Stmt\Class_;
1314
use Rector\Rector\AbstractRector;
@@ -89,7 +90,7 @@ public function refactor(Node $node) : ?Node
8990
if (\count($classMethod->params) !== 3) {
9091
return null;
9192
}
92-
$classMethod->params[] = new Param(new Variable('vote'), new ConstFetch(new Name('null')), new Node\NullableType(new FullyQualified(self::VOTE_CLASS)));
93+
$classMethod->params[] = new Param(new Variable('vote'), new ConstFetch(new Name('null')), new NullableType(new FullyQualified(self::VOTE_CLASS)));
9394
return $node;
9495
}
9596
}

vendor/rector/rector-symfony/rules/Symfony73/Rector/Class_/ConstraintOptionsToNamedArgumentsRector.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55

66
use PhpParser\Node;
77
use PhpParser\Node\Arg;
8-
use PhpParser\Node\Expr\Array_;
98
use PhpParser\Node\ArrayItem;
109
use PhpParser\Node\Expr;
10+
use PhpParser\Node\Expr\Array_;
1111
use PhpParser\Node\Expr\New_;
12+
use PhpParser\Node\Identifier;
1213
use PhpParser\Node\Name;
1314
use PhpParser\Node\Name\FullyQualified;
1415
use Rector\PhpParser\Node\Value\ValueResolver;
@@ -63,12 +64,12 @@ public function refactor(Node $node) : ?Node
6364
return null;
6465
}
6566
$argName = $node->args[0]->name;
66-
if ($argName !== null && $argName->name !== 'options') {
67+
if ($argName instanceof Identifier && $argName->name !== 'options') {
6768
return null;
6869
}
6970
$array = $node->args[0]->value;
7071
$namedArgs = [];
71-
foreach ($array->items as $key => $item) {
72+
foreach ($array->items as $item) {
7273
if (!$item instanceof ArrayItem) {
7374
continue;
7475
}
@@ -83,8 +84,8 @@ public function refactor(Node $node) : ?Node
8384
if (!\is_string($keyValue)) {
8485
continue;
8586
}
86-
$arg = new Node\Arg($item->value);
87-
$arg->name = new Node\Identifier($keyValue);
87+
$arg = new Arg($item->value);
88+
$arg->name = new Identifier($keyValue);
8889
$namedArgs[] = $arg;
8990
}
9091
$node->args = $namedArgs;

0 commit comments

Comments
 (0)