Skip to content

Commit d785bbe

Browse files
committed
Updated Rector to commit 6e31710cca5c1cc0dcc9c5e08de1a0d53281c84b
rectorphp/rector-src@6e31710 [e2e][core][Printer] Use more reliable FileDiff instead of empty ->getRectorWithLineChanges() on PhpFileProcessor (#3414)
1 parent acd9d65 commit d785bbe

10 files changed

Lines changed: 48 additions & 44 deletions

File tree

src/Application/FileProcessor/PhpFileProcessor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,11 @@ private function printFile(File $file, Configuration $configuration) : void
170170
// only save to string first, no need to print to file when not needed
171171
$newContent = $this->formatPerservingPrinter->printParsedStmstAndTokensToString($file);
172172
/**
173-
* When no Rules applied, the PostRector may still change the content, that's why printing still needed
173+
* When no diff applied, the PostRector may still change the content, that's why printing still needed
174174
* On printing, the space may be wiped, these below check compare with original file content used to verify
175-
* that no diff actually needed
175+
* that no change actually needed
176176
*/
177-
if ($file->getRectorWithLineChanges() === []) {
177+
if (!$file->getFileDiff() instanceof FileDiff) {
178178
/**
179179
* Handle new line or space before <?php or InlineHTML node wiped on print format preserving
180180
* On very first content level

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = 'f60aaa59539dfa31b03085ba0747a73b1815d23e';
22+
public const PACKAGE_VERSION = '6e31710cca5c1cc0dcc9c5e08de1a0d53281c84b';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2023-02-25 12:48:50';
27+
public const RELEASE_DATE = '2023-02-25 17:38:27';
2828
/**
2929
* @var int
3030
*/

vendor/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222

2323
require_once __DIR__ . '/composer/autoload_real.php';
2424

25-
return ComposerAutoloaderInitdbbcf9be257bf52efb0f8ce767c0f8ce::getLoader();
25+
return ComposerAutoloaderInita6e687eda5a904a3fc5f42726b233c7a::getLoader();

vendor/composer/autoload_real.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// autoload_real.php @generated by Composer
44

5-
class ComposerAutoloaderInitdbbcf9be257bf52efb0f8ce767c0f8ce
5+
class ComposerAutoloaderInita6e687eda5a904a3fc5f42726b233c7a
66
{
77
private static $loader;
88

@@ -22,17 +22,17 @@ public static function getLoader()
2222
return self::$loader;
2323
}
2424

25-
spl_autoload_register(array('ComposerAutoloaderInitdbbcf9be257bf52efb0f8ce767c0f8ce', 'loadClassLoader'), true, true);
25+
spl_autoload_register(array('ComposerAutoloaderInita6e687eda5a904a3fc5f42726b233c7a', 'loadClassLoader'), true, true);
2626
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27-
spl_autoload_unregister(array('ComposerAutoloaderInitdbbcf9be257bf52efb0f8ce767c0f8ce', 'loadClassLoader'));
27+
spl_autoload_unregister(array('ComposerAutoloaderInita6e687eda5a904a3fc5f42726b233c7a', 'loadClassLoader'));
2828

2929
require __DIR__ . '/autoload_static.php';
30-
call_user_func(\Composer\Autoload\ComposerStaticInitdbbcf9be257bf52efb0f8ce767c0f8ce::getInitializer($loader));
30+
call_user_func(\Composer\Autoload\ComposerStaticInita6e687eda5a904a3fc5f42726b233c7a::getInitializer($loader));
3131

3232
$loader->setClassMapAuthoritative(true);
3333
$loader->register(true);
3434

35-
$filesToLoad = \Composer\Autoload\ComposerStaticInitdbbcf9be257bf52efb0f8ce767c0f8ce::$files;
35+
$filesToLoad = \Composer\Autoload\ComposerStaticInita6e687eda5a904a3fc5f42726b233c7a::$files;
3636
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
3737
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
3838
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

vendor/composer/autoload_static.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Composer\Autoload;
66

7-
class ComposerStaticInitdbbcf9be257bf52efb0f8ce767c0f8ce
7+
class ComposerStaticInita6e687eda5a904a3fc5f42726b233c7a
88
{
99
public static $files = array (
1010
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@@ -3125,9 +3125,9 @@ class ComposerStaticInitdbbcf9be257bf52efb0f8ce767c0f8ce
31253125
public static function getInitializer(ClassLoader $loader)
31263126
{
31273127
return \Closure::bind(function () use ($loader) {
3128-
$loader->prefixLengthsPsr4 = ComposerStaticInitdbbcf9be257bf52efb0f8ce767c0f8ce::$prefixLengthsPsr4;
3129-
$loader->prefixDirsPsr4 = ComposerStaticInitdbbcf9be257bf52efb0f8ce767c0f8ce::$prefixDirsPsr4;
3130-
$loader->classMap = ComposerStaticInitdbbcf9be257bf52efb0f8ce767c0f8ce::$classMap;
3128+
$loader->prefixLengthsPsr4 = ComposerStaticInita6e687eda5a904a3fc5f42726b233c7a::$prefixLengthsPsr4;
3129+
$loader->prefixDirsPsr4 = ComposerStaticInita6e687eda5a904a3fc5f42726b233c7a::$prefixDirsPsr4;
3130+
$loader->classMap = ComposerStaticInita6e687eda5a904a3fc5f42726b233c7a::$classMap;
31313131

31323132
}, null, ClassLoader::class);
31333133
}

vendor/composer/installed.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -869,17 +869,17 @@
869869
},
870870
{
871871
"name": "phpstan\/phpstan",
872-
"version": "1.10.2",
873-
"version_normalized": "1.10.2.0",
872+
"version": "1.10.3",
873+
"version_normalized": "1.10.3.0",
874874
"source": {
875875
"type": "git",
876876
"url": "https:\/\/github.com\/phpstan\/phpstan.git",
877-
"reference": "a2ffec7db373d8da4973d1d62add872db5cd22dd"
877+
"reference": "5419375b5891add97dc74be71e6c1c34baaddf64"
878878
},
879879
"dist": {
880880
"type": "zip",
881-
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan\/zipball\/a2ffec7db373d8da4973d1d62add872db5cd22dd",
882-
"reference": "a2ffec7db373d8da4973d1d62add872db5cd22dd",
881+
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan\/zipball\/5419375b5891add97dc74be71e6c1c34baaddf64",
882+
"reference": "5419375b5891add97dc74be71e6c1c34baaddf64",
883883
"shasum": ""
884884
},
885885
"require": {
@@ -888,7 +888,7 @@
888888
"conflict": {
889889
"phpstan\/phpstan-shim": "*"
890890
},
891-
"time": "2023-02-23T14:36:46+00:00",
891+
"time": "2023-02-25T14:47:13+00:00",
892892
"bin": [
893893
"phpstan",
894894
"phpstan.phar"
@@ -911,7 +911,7 @@
911911
],
912912
"support": {
913913
"issues": "https:\/\/github.com\/phpstan\/phpstan\/issues",
914-
"source": "https:\/\/github.com\/phpstan\/phpstan\/tree\/1.10.2"
914+
"source": "https:\/\/github.com\/phpstan\/phpstan\/tree\/1.10.3"
915915
},
916916
"funding": [
917917
{
@@ -931,17 +931,17 @@
931931
},
932932
{
933933
"name": "phpstan\/phpstan-phpunit",
934-
"version": "1.3.7",
935-
"version_normalized": "1.3.7.0",
934+
"version": "1.3.8",
935+
"version_normalized": "1.3.8.0",
936936
"source": {
937937
"type": "git",
938938
"url": "https:\/\/github.com\/phpstan\/phpstan-phpunit.git",
939-
"reference": "7e43c8f77c7e419730ead01c8dc787c6bcbe0e15"
939+
"reference": "4a19a3cb5b2d28b143f350e45e9f6e17e2cb81b5"
940940
},
941941
"dist": {
942942
"type": "zip",
943-
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan-phpunit\/zipball\/7e43c8f77c7e419730ead01c8dc787c6bcbe0e15",
944-
"reference": "7e43c8f77c7e419730ead01c8dc787c6bcbe0e15",
943+
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan-phpunit\/zipball\/4a19a3cb5b2d28b143f350e45e9f6e17e2cb81b5",
944+
"reference": "4a19a3cb5b2d28b143f350e45e9f6e17e2cb81b5",
945945
"shasum": ""
946946
},
947947
"require": {
@@ -957,7 +957,7 @@
957957
"phpstan\/phpstan-strict-rules": "^1.0",
958958
"phpunit\/phpunit": "^9.5"
959959
},
960-
"time": "2023-02-21T18:40:15+00:00",
960+
"time": "2023-02-25T15:14:31+00:00",
961961
"type": "phpstan-extension",
962962
"extra": {
963963
"phpstan": {
@@ -980,7 +980,7 @@
980980
"description": "PHPUnit extensions and rules for PHPStan",
981981
"support": {
982982
"issues": "https:\/\/github.com\/phpstan\/phpstan-phpunit\/issues",
983-
"source": "https:\/\/github.com\/phpstan\/phpstan-phpunit\/tree\/1.3.7"
983+
"source": "https:\/\/github.com\/phpstan\/phpstan-phpunit\/tree\/1.3.8"
984984
},
985985
"install-path": "..\/phpstan\/phpstan-phpunit"
986986
},

0 commit comments

Comments
 (0)