Updated Rector to commit 51fcdc2639267a875c3d5c1a985800104e984ead

51fcdc2639 [Cache] Replace Strings::webalize() with sha1_file() from resolved path on ChangedFilesDetector (#3356)
This commit is contained in:
Tomas Votruba 2023-02-07 16:56:38 +00:00
parent 1f4ea6f9b2
commit b971f67811
8 changed files with 19 additions and 20 deletions

View File

@ -3,7 +3,6 @@
declare (strict_types=1);
namespace Rector\Caching\Detector;
use RectorPrefix202302\Nette\Utils\Strings;
use Rector\Caching\Cache;
use Rector\Caching\Config\FileHashComputer;
use Rector\Caching\Enum\CacheKey;
@ -102,7 +101,7 @@ final class ChangedFilesDetector
}
private function storeConfigurationDataHash(string $filePath, string $configurationHash) : void
{
$key = CacheKey::CONFIGURATION_HASH_KEY . '_' . Strings::webalize($filePath);
$key = CacheKey::CONFIGURATION_HASH_KEY . '_' . $this->hashFile($filePath);
$this->invalidateCacheIfConfigurationChanged($key, $configurationHash);
$this->cache->save($key, CacheKey::CONFIGURATION_HASH_KEY, $configurationHash);
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '7f873f0311679c23feacabd3089c8185b9a93c74';
public const PACKAGE_VERSION = '51fcdc2639267a875c3d5c1a985800104e984ead';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-02-07 20:06:43';
public const RELEASE_DATE = '2023-02-07 16:50:52';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit1e12be2eb93c8583a8ed506af09bf6f6::getLoader();
return ComposerAutoloaderInitcc56f372859d250d46691667baa25a8f::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit1e12be2eb93c8583a8ed506af09bf6f6
class ComposerAutoloaderInitcc56f372859d250d46691667baa25a8f
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit1e12be2eb93c8583a8ed506af09bf6f6
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit1e12be2eb93c8583a8ed506af09bf6f6', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitcc56f372859d250d46691667baa25a8f', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit1e12be2eb93c8583a8ed506af09bf6f6', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitcc56f372859d250d46691667baa25a8f', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit1e12be2eb93c8583a8ed506af09bf6f6::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitcc56f372859d250d46691667baa25a8f::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit1e12be2eb93c8583a8ed506af09bf6f6::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInitcc56f372859d250d46691667baa25a8f::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit1e12be2eb93c8583a8ed506af09bf6f6
class ComposerStaticInitcc56f372859d250d46691667baa25a8f
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3106,9 +3106,9 @@ class ComposerStaticInit1e12be2eb93c8583a8ed506af09bf6f6
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit1e12be2eb93c8583a8ed506af09bf6f6::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit1e12be2eb93c8583a8ed506af09bf6f6::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit1e12be2eb93c8583a8ed506af09bf6f6::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitcc56f372859d250d46691667baa25a8f::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitcc56f372859d250d46691667baa25a8f::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitcc56f372859d250d46691667baa25a8f::$classMap;
}, null, ClassLoader::class);
}

View File

@ -2059,12 +2059,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
"reference": "933bccdffe41f45b1223ecbfb5750925376ff50b"
"reference": "ee461b14551189faca960058ef4fb1146755f8ca"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/933bccdffe41f45b1223ecbfb5750925376ff50b",
"reference": "933bccdffe41f45b1223ecbfb5750925376ff50b",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/ee461b14551189faca960058ef4fb1146755f8ca",
"reference": "ee461b14551189faca960058ef4fb1146755f8ca",
"shasum": ""
},
"require": {
@ -2093,7 +2093,7 @@
"tomasvotruba\/type-coverage": "^0.0.9",
"tomasvotruba\/unused-public": "^0.0.34"
},
"time": "2023-02-07T12:36:35+00:00",
"time": "2023-02-07T15:19:06+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
*/
final class GeneratedConfig
{
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main ea9cf46'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 46346e2'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9639ef9'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 933bccd'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 89e994f'));
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main ea9cf46'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 46346e2'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9639ef9'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main ee461b1'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 89e994f'));
private function __construct()
{
}