Skip to content

Commit

Permalink
Updated Rector to commit 6e31710cca5c1cc0dcc9c5e08de1a0d53281c84b
Browse files Browse the repository at this point in the history
rectorphp/rector-src@6e31710 [e2e][core][Printer] Use more reliable FileDiff instead of empty ->getRectorWithLineChanges() on PhpFileProcessor (#3414)
  • Loading branch information
TomasVotruba committed Feb 25, 2023
1 parent acd9d65 commit d785bbe
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 44 deletions.
6 changes: 3 additions & 3 deletions src/Application/FileProcessor/PhpFileProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ private function printFile(File $file, Configuration $configuration) : void
// only save to string first, no need to print to file when not needed
$newContent = $this->formatPerservingPrinter->printParsedStmstAndTokensToString($file);
/**
* When no Rules applied, the PostRector may still change the content, that's why printing still needed
* When no diff applied, the PostRector may still change the content, that's why printing still needed
* On printing, the space may be wiped, these below check compare with original file content used to verify
* that no diff actually needed
* that no change actually needed
*/
if ($file->getRectorWithLineChanges() === []) {
if (!$file->getFileDiff() instanceof FileDiff) {
/**
* Handle new line or space before <?php or InlineHTML node wiped on print format preserving
* On very first content level
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'f60aaa59539dfa31b03085ba0747a73b1815d23e';
public const PACKAGE_VERSION = '6e31710cca5c1cc0dcc9c5e08de1a0d53281c84b';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-02-25 12:48:50';
public const RELEASE_DATE = '2023-02-25 17:38:27';
/**
* @var int
*/
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

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

return ComposerAutoloaderInitdbbcf9be257bf52efb0f8ce767c0f8ce::getLoader();
return ComposerAutoloaderInita6e687eda5a904a3fc5f42726b233c7a::getLoader();
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInitdbbcf9be257bf52efb0f8ce767c0f8ce
class ComposerAutoloaderInita6e687eda5a904a3fc5f42726b233c7a
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
return self::$loader;
}

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

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

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInitdbbcf9be257bf52efb0f8ce767c0f8ce::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInita6e687eda5a904a3fc5f42726b233c7a::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInitdbbcf9be257bf52efb0f8ce767c0f8ce
class ComposerStaticInita6e687eda5a904a3fc5f42726b233c7a
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -3125,9 +3125,9 @@ class ComposerStaticInitdbbcf9be257bf52efb0f8ce767c0f8ce
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitdbbcf9be257bf52efb0f8ce767c0f8ce::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitdbbcf9be257bf52efb0f8ce767c0f8ce::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitdbbcf9be257bf52efb0f8ce767c0f8ce::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInita6e687eda5a904a3fc5f42726b233c7a::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInita6e687eda5a904a3fc5f42726b233c7a::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInita6e687eda5a904a3fc5f42726b233c7a::$classMap;

}, null, ClassLoader::class);
}
Expand Down
28 changes: 14 additions & 14 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -869,17 +869,17 @@
},
{
"name": "phpstan\/phpstan",
"version": "1.10.2",
"version_normalized": "1.10.2.0",
"version": "1.10.3",
"version_normalized": "1.10.3.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/phpstan\/phpstan.git",
"reference": "a2ffec7db373d8da4973d1d62add872db5cd22dd"
"reference": "5419375b5891add97dc74be71e6c1c34baaddf64"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan\/zipball\/a2ffec7db373d8da4973d1d62add872db5cd22dd",
"reference": "a2ffec7db373d8da4973d1d62add872db5cd22dd",
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan\/zipball\/5419375b5891add97dc74be71e6c1c34baaddf64",
"reference": "5419375b5891add97dc74be71e6c1c34baaddf64",
"shasum": ""
},
"require": {
Expand All @@ -888,7 +888,7 @@
"conflict": {
"phpstan\/phpstan-shim": "*"
},
"time": "2023-02-23T14:36:46+00:00",
"time": "2023-02-25T14:47:13+00:00",
"bin": [
"phpstan",
"phpstan.phar"
Expand All @@ -911,7 +911,7 @@
],
"support": {
"issues": "https:\/\/github.com\/phpstan\/phpstan\/issues",
"source": "https:\/\/github.com\/phpstan\/phpstan\/tree\/1.10.2"
"source": "https:\/\/github.com\/phpstan\/phpstan\/tree\/1.10.3"
},
"funding": [
{
Expand All @@ -931,17 +931,17 @@
},
{
"name": "phpstan\/phpstan-phpunit",
"version": "1.3.7",
"version_normalized": "1.3.7.0",
"version": "1.3.8",
"version_normalized": "1.3.8.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/phpstan\/phpstan-phpunit.git",
"reference": "7e43c8f77c7e419730ead01c8dc787c6bcbe0e15"
"reference": "4a19a3cb5b2d28b143f350e45e9f6e17e2cb81b5"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan-phpunit\/zipball\/7e43c8f77c7e419730ead01c8dc787c6bcbe0e15",
"reference": "7e43c8f77c7e419730ead01c8dc787c6bcbe0e15",
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan-phpunit\/zipball\/4a19a3cb5b2d28b143f350e45e9f6e17e2cb81b5",
"reference": "4a19a3cb5b2d28b143f350e45e9f6e17e2cb81b5",
"shasum": ""
},
"require": {
Expand All @@ -957,7 +957,7 @@
"phpstan\/phpstan-strict-rules": "^1.0",
"phpunit\/phpunit": "^9.5"
},
"time": "2023-02-21T18:40:15+00:00",
"time": "2023-02-25T15:14:31+00:00",
"type": "phpstan-extension",
"extra": {
"phpstan": {
Expand All @@ -980,7 +980,7 @@
"description": "PHPUnit extensions and rules for PHPStan",
"support": {
"issues": "https:\/\/github.com\/phpstan\/phpstan-phpunit\/issues",
"source": "https:\/\/github.com\/phpstan\/phpstan-phpunit\/tree\/1.3.7"
"source": "https:\/\/github.com\/phpstan\/phpstan-phpunit\/tree\/1.3.8"
},
"install-path": "..\/phpstan\/phpstan-phpunit"
},
Expand Down
Loading

0 comments on commit d785bbe

Please sign in to comment.