From dac98bed20faafe3dce924406b93855010484b5c Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 29 Jun 2023 09:57:51 +0000 Subject: [PATCH] Updated Rector to commit 9d85c96cb1d90aeb6d03eed4856be6861dc07673 https://github.com/rectorphp/rector-src/commit/9d85c96cb1d90aeb6d03eed4856be6861dc07673 Cache unchanged files on dry run v2 (#4281) --- packages/Parallel/WorkerRunner.php | 2 +- src/Application/ApplicationFileProcessor.php | 2 +- src/Application/VersionResolver.php | 4 ++-- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 10 +++++----- vendor/composer/autoload_static.php | 8 ++++---- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/Parallel/WorkerRunner.php b/packages/Parallel/WorkerRunner.php index 28a5fdd4251d..6b13671e3553 100644 --- a/packages/Parallel/WorkerRunner.php +++ b/packages/Parallel/WorkerRunner.php @@ -107,7 +107,7 @@ public function run(Encoder $encoder, Decoder $decoder, Configuration $configura $errorAndFileDiffs = $this->processFile($file, $configuration, $errorAndFileDiffs); if ($errorAndFileDiffs[Bridge::SYSTEM_ERRORS] !== []) { $this->invalidateFile($file); - } elseif (!$configuration->isDryRun()) { + } elseif (!$configuration->isDryRun() || $errorAndFileDiffs[Bridge::FILE_DIFFS] === []) { $this->changedFilesDetector->cacheFileWithDependencies($file->getFilePath()); } } catch (Throwable $throwable) { diff --git a/src/Application/ApplicationFileProcessor.php b/src/Application/ApplicationFileProcessor.php index c9a169eb8e68..f334e389334e 100644 --- a/src/Application/ApplicationFileProcessor.php +++ b/src/Application/ApplicationFileProcessor.php @@ -164,7 +164,7 @@ public function processFiles(array $files, Configuration $configuration) : array } if ($systemErrorsAndFileDiffs[Bridge::SYSTEM_ERRORS] !== []) { $this->changedFilesDetector->invalidateFile($file->getFilePath()); - } elseif (!$configuration->isDryRun()) { + } elseif (!$configuration->isDryRun() || $systemErrorsAndFileDiffs[Bridge::FILE_DIFFS] === []) { $this->changedFilesDetector->cacheFileWithDependencies($file->getFilePath()); } // progress bar +1 diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index c015fec07a09..3f56e536bb38 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = 'a808debdb28fa1dd32ed804c6276e9cac30f7d37'; + public const PACKAGE_VERSION = '9d85c96cb1d90aeb6d03eed4856be6861dc07673'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-06-29 15:12:00'; + public const RELEASE_DATE = '2023-06-29 10:52:03'; /** * @var int */ diff --git a/vendor/autoload.php b/vendor/autoload.php index fcf95a275b0f..91e1c017a512 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitb6619cb9cfa3e4987bc69d90a7afb90f::getLoader(); +return ComposerAutoloaderInit66946d2f17dc4a5961b873af41863f35::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index c480771193f4..720e71191987 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitb6619cb9cfa3e4987bc69d90a7afb90f +class ComposerAutoloaderInit66946d2f17dc4a5961b873af41863f35 { private static $loader; @@ -22,17 +22,17 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitb6619cb9cfa3e4987bc69d90a7afb90f', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit66946d2f17dc4a5961b873af41863f35', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInitb6619cb9cfa3e4987bc69d90a7afb90f', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit66946d2f17dc4a5961b873af41863f35', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit66946d2f17dc4a5961b873af41863f35::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $filesToLoad = \Composer\Autoload\ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f::$files; + $filesToLoad = \Composer\Autoload\ComposerStaticInit66946d2f17dc4a5961b873af41863f35::$files; $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index b5d30986b606..b162474dfa06 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f +class ComposerStaticInit66946d2f17dc4a5961b873af41863f35 { public static $files = array ( 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', @@ -3098,9 +3098,9 @@ class ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit66946d2f17dc4a5961b873af41863f35::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit66946d2f17dc4a5961b873af41863f35::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit66946d2f17dc4a5961b873af41863f35::$classMap; }, null, ClassLoader::class); }