Skip to content

Commit

Permalink
Updated Rector to commit 9d85c96cb1d90aeb6d03eed4856be6861dc07673
Browse files Browse the repository at this point in the history
rectorphp/rector-src@9d85c96 Cache unchanged files on dry run v2 (#4281)
  • Loading branch information
TomasVotruba committed Jun 29, 2023
1 parent 9c2b8f6 commit dac98be
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/Parallel/WorkerRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/Application/ApplicationFileProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 = '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
*/
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 ComposerAutoloaderInitb6619cb9cfa3e4987bc69d90a7afb90f::getLoader();
return ComposerAutoloaderInit66946d2f17dc4a5961b873af41863f35::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 ComposerAutoloaderInitb6619cb9cfa3e4987bc69d90a7afb90f
class ComposerAutoloaderInit66946d2f17dc4a5961b873af41863f35
{
private static $loader;

Expand All @@ -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;
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 ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f
class ComposerStaticInit66946d2f17dc4a5961b873af41863f35
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit dac98be

Please sign in to comment.