1
0
mirror of https://github.com/rectorphp/rector.git synced 2025-03-15 04:49:44 +01:00

Rector 2.0.3

This commit is contained in:
Tomas Votruba 2024-12-12 15:22:19 +00:00
parent 8f1c86681e
commit 3f27091368
4 changed files with 13 additions and 9 deletions
vendor
composer
rector
extension-installer/src
rector-downgrade-php/rules/DowngradePhp73/Rector/FuncCall

@ -1750,12 +1750,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git",
"reference": "3aebc8181f0feca82aa15163d90d500b33c9d572"
"reference": "4a4281592cdb00c38c7034d5de4bb80bec76e3c9"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/3aebc8181f0feca82aa15163d90d500b33c9d572",
"reference": "3aebc8181f0feca82aa15163d90d500b33c9d572",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/4a4281592cdb00c38c7034d5de4bb80bec76e3c9",
"reference": "4a4281592cdb00c38c7034d5de4bb80bec76e3c9",
"shasum": ""
},
"require": {
@ -1773,7 +1773,7 @@
"tomasvotruba\/class-leak": "^1.0",
"tracy\/tracy": "^2.10"
},
"time": "2024-12-12T14:49:11+00:00",
"time": "2024-12-12T15:18:45+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

File diff suppressed because one or more lines are too long

@ -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 a4cd22d'), '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 3aebc81'), '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 510a99d'), '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 29a1abf'));
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 a4cd22d'), '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 4a42815'), '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 510a99d'), '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 29a1abf'));
private function __construct()
{
}

@ -80,11 +80,15 @@ CODE_SAMPLE
$tokens = $this->file->getOldTokens();
$iteration = 1;
while (isset($tokens[$args[$lastArgKey]->getEndTokenPos() + $iteration])) {
if (\trim($tokens[$args[$lastArgKey]->getEndTokenPos() + $iteration]->text) === ',') {
$tokens[$args[$lastArgKey]->getEndTokenPos() + $iteration]->text = '';
if (\trim($tokens[$args[$lastArgKey]->getEndTokenPos() + $iteration]->text) === '') {
++$iteration;
continue;
}
if (\trim($tokens[$args[$lastArgKey]->getEndTokenPos() + $iteration]->text) !== ',') {
break;
}
++$iteration;
$tokens[$args[$lastArgKey]->getEndTokenPos() + $iteration]->text = '';
break;
}
return $node;
}