Skip to content

Commit

Permalink
Updated Rector to commit 3cf5b1a2b89979dc375701d88608bc03d6a4a7dd
Browse files Browse the repository at this point in the history
rectorphp/rector-src@3cf5b1a [NodeTypeResolver] Clean up resolve cache class name key (#5880)
  • Loading branch information
TomasVotruba committed May 15, 2024
1 parent 049336a commit 7d70c58
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/Application/ApplicationFileProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
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;
Expand Down Expand Up @@ -125,7 +124,7 @@ public function run(Configuration $configuration, InputInterface $input) : Proce
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();
/**
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 = '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
*/
Expand Down
2 changes: 1 addition & 1 deletion src/FamilyTree/Reflection/FamilyRelationsAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private function loadClasses() : void
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private function collectClasses(AggregateSourceLocator $aggregateSourceLocator,
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;
Expand Down

0 comments on commit 7d70c58

Please sign in to comment.