Updated Rector to commit 068799f59b289bef06b9c1f384df4301b19e726e

068799f59b [Performance] Early skip func call name on ClassRenamer (#5837)
This commit is contained in:
Tomas Votruba 2024-04-20 20:05:57 +00:00
parent b9839a24cb
commit 584e892a51
4 changed files with 13 additions and 7 deletions

View File

@ -1866,12 +1866,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "607447eab503bea12913c9ddce690c6055424acd"
"reference": "b8126e8bf6e239fd53329fcd715ea117a4b4c34c"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/607447eab503bea12913c9ddce690c6055424acd",
"reference": "607447eab503bea12913c9ddce690c6055424acd",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/b8126e8bf6e239fd53329fcd715ea117a4b4c34c",
"reference": "b8126e8bf6e239fd53329fcd715ea117a4b4c34c",
"shasum": ""
},
"require": {
@ -1900,7 +1900,7 @@
"tomasvotruba\/class-leak": "^0.2.6",
"tracy\/tracy": "^2.10"
},
"time": "2024-04-09T22:40:17+00:00",
"time": "2024-04-20T20:01:42+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
*/
final class GeneratedConfig
{
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 b3da143'), '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 05e44cf'), '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 e8af39b'), '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 607447e'));
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 b3da143'), '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 05e44cf'), '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 e8af39b'), '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 b8126e8'));
private function __construct()
{
}

View File

@ -137,12 +137,15 @@ CODE_SAMPLE
}
$configVariable = $this->createConfigVariable($configClass);
$stmts = $this->createMethodCallStmts($extensionKeyAndConfiguration->getArray(), $configVariable);
if ($stmts === null) {
return null;
}
return $this->symfonyClosureFactory->create($configClass, $node, $stmts);
}
/**
* @return array<Expression<MethodCall>>
*/
private function createMethodCallStmts(Array_ $configurationArray, Variable $configVariable) : array
private function createMethodCallStmts(Array_ $configurationArray, Variable $configVariable) : ?array
{
$methodCallStmts = [];
$configurationValues = $this->valueResolver->getValue($configurationArray);
@ -180,6 +183,9 @@ CODE_SAMPLE
} else {
$currentConfigCaller = $configVariable;
}
if (!\is_array($value)) {
return null;
}
foreach ($value as $itemName => $itemConfiguration) {
if ($nested && \is_array($itemConfiguration)) {
$methodCallName = $itemName;