Updated Rector to commit 3cf5b1a2b89979dc375701d88608bc03d6a4a7dd

3cf5b1a2b8 [NodeTypeResolver] Clean up resolve cache class name key (#5880)
This commit is contained in:
Tomas Votruba 2024-05-15 02:04:07 +00:00
parent 049336a81a
commit 7d70c5853e
4 changed files with 5 additions and 6 deletions

View File

@ -6,7 +6,6 @@ namespace Rector\Application;
use RectorPrefix202405\Nette\Utils\FileSystem as UtilsFileSystem;
use Rector\Caching\Cache;
use Rector\Caching\Detector\ChangedFilesDetector;
use Rector\Caching\Enum\CacheKey;
use Rector\Configuration\Option;
use Rector\Configuration\Parameter\SimpleParameterProvider;
use Rector\Configuration\VendorMissAnalyseGuard;
@ -125,7 +124,7 @@ final class ApplicationFileProcessor
return new ProcessResult([], []);
}
// ensure clear classnames collection caches on repetitive call
$key = CacheKey::CLASSNAMES_HASH_KEY . '_' . $this->dynamicSourceLocatorProvider->getCacheClassNameKey();
$key = $this->dynamicSourceLocatorProvider->getCacheClassNameKey();
$this->cache->clean($key);
$this->configureCustomErrorHandler();
/**

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '8ab5e979db19845b9dd3c39bec566830870845dc';
public const PACKAGE_VERSION = '3cf5b1a2b89979dc375701d88608bc03d6a4a7dd';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-05-15 08:45:30';
public const RELEASE_DATE = '2024-05-15 09:00:44';
/**
* @var int
*/

View File

@ -117,7 +117,7 @@ final class FamilyRelationsAnalyzer
if ($this->hasClassNamesCachedOrLoadOneLocator) {
return;
}
$key = CacheKey::CLASSNAMES_HASH_KEY . '_' . $this->dynamicSourceLocatorProvider->getCacheClassNameKey();
$key = $this->dynamicSourceLocatorProvider->getCacheClassNameKey();
$classNamesCache = $this->cache->load($key, CacheKey::CLASSNAMES_HASH_KEY);
if (\is_string($classNamesCache)) {
$classNamesCache = \json_decode($classNamesCache);

View File

@ -134,7 +134,7 @@ final class DynamicSourceLocatorProvider implements ResetableInterface
if (\count($sourceLocators) === 1 && $sourceLocators[0] instanceof OptimizedSingleFileSourceLocator) {
return;
}
$key = CacheKey::CLASSNAMES_HASH_KEY . '_' . $this->getCacheClassNameKey();
$key = $this->getCacheClassNameKey();
$classNamesCache = $this->cache->load($key, CacheKey::CLASSNAMES_HASH_KEY);
if (\is_string($classNamesCache)) {
return;