Skip to content

Commit 5e3504c

Browse files
committed
Rector 2.0.1
1 parent 5b38230 commit 5e3504c

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

src/Application/VersionResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '5e50b8ad1c5c125178778f230fae5ee25eda3896';
22+
public const PACKAGE_VERSION = '2.0.1';
2323
/**
2424
* @api
2525
* @var string

vendor/composer/installed.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,12 +1750,12 @@
17501750
"source": {
17511751
"type": "git",
17521752
"url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git",
1753-
"reference": "be0720b7590b02996fea50fb0a8951434e328b33"
1753+
"reference": "0ed4563cd75a58471dcfff14ebee973e58403661"
17541754
},
17551755
"dist": {
17561756
"type": "zip",
1757-
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/be0720b7590b02996fea50fb0a8951434e328b33",
1758-
"reference": "be0720b7590b02996fea50fb0a8951434e328b33",
1757+
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/0ed4563cd75a58471dcfff14ebee973e58403661",
1758+
"reference": "0ed4563cd75a58471dcfff14ebee973e58403661",
17591759
"shasum": ""
17601760
},
17611761
"require": {
@@ -1773,7 +1773,7 @@
17731773
"tomasvotruba\/class-leak": "^1.0",
17741774
"tracy\/tracy": "^2.10"
17751775
},
1776-
"time": "2024-12-03T17:36:37+00:00",
1776+
"time": "2024-12-12T13:42:46+00:00",
17771777
"default-branch": true,
17781778
"type": "rector-extension",
17791779
"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 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 be0720b'), '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'));
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 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 0ed4563'), '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'));
1313
private function __construct()
1414
{
1515
}

vendor/rector/rector-downgrade-php/rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ public function refactor(Node $node) : ?Node
6969
}
7070
$node->setAttribute(AttributeKey::DOC_INDENTATION, '__REMOVED__');
7171
$node->setAttribute(AttributeKey::ORIGINAL_NODE, null);
72+
$tokens = $this->file->getOldTokens();
73+
if (isset($tokens[$node->getEndTokenPos()], $tokens[$node->getEndTokenPos() + 1])) {
74+
$tokens[$node->getEndTokenPos() + 1]->text = "\n" . $tokens[$node->getEndTokenPos() + 1]->text;
75+
}
7276
return $node;
7377
}
7478
}

0 commit comments

Comments
 (0)