mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-06 03:10:50 +00:00
Updated Rector to commit 3cf5b1a2b89979dc375701d88608bc03d6a4a7dd
3cf5b1a2b8
[NodeTypeResolver] Clean up resolve cache class name key (#5880)
This commit is contained in:
parent
049336a81a
commit
7d70c5853e
|
@ -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();
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user