mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-06 03:10:50 +00:00
Updated Rector to commit 6bd2b871c4e9741928fb48df3ca8e899be42be81
6bd2b871c4
[NodeTypeResolver] No need json_decode/json_encode for cache class name collection (#5881)
This commit is contained in:
parent
7d70c5853e
commit
3c1e41f006
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '3cf5b1a2b89979dc375701d88608bc03d6a4a7dd';
|
||||
public const PACKAGE_VERSION = '6bd2b871c4e9741928fb48df3ca8e899be42be81';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-05-15 09:00:44';
|
||||
public const RELEASE_DATE = '2024-05-15 09:15:53';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -119,14 +119,11 @@ final class FamilyRelationsAnalyzer
|
|||
}
|
||||
$key = $this->dynamicSourceLocatorProvider->getCacheClassNameKey();
|
||||
$classNamesCache = $this->cache->load($key, CacheKey::CLASSNAMES_HASH_KEY);
|
||||
if (\is_string($classNamesCache)) {
|
||||
$classNamesCache = \json_decode($classNamesCache);
|
||||
if (\is_array($classNamesCache)) {
|
||||
foreach ($classNamesCache as $classNameCache) {
|
||||
try {
|
||||
$this->reflectionProvider->getClass($classNameCache);
|
||||
} catch (ClassNotFoundException $exception) {
|
||||
}
|
||||
if (\is_array($classNamesCache)) {
|
||||
foreach ($classNamesCache as $classNameCache) {
|
||||
try {
|
||||
$this->reflectionProvider->getClass($classNameCache);
|
||||
} catch (ClassNotFoundException $exception) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ final class DynamicSourceLocatorProvider implements ResetableInterface
|
|||
}
|
||||
$key = $this->getCacheClassNameKey();
|
||||
$classNamesCache = $this->cache->load($key, CacheKey::CLASSNAMES_HASH_KEY);
|
||||
if (\is_string($classNamesCache)) {
|
||||
if (\is_array($classNamesCache)) {
|
||||
return;
|
||||
}
|
||||
$reflector = new DefaultReflector($aggregateSourceLocator);
|
||||
|
@ -149,6 +149,6 @@ final class DynamicSourceLocatorProvider implements ResetableInterface
|
|||
}
|
||||
} catch (CouldNotReadFileException $exception) {
|
||||
}
|
||||
$this->cache->save($key, CacheKey::CLASSNAMES_HASH_KEY, \json_encode($classNames));
|
||||
$this->cache->save($key, CacheKey::CLASSNAMES_HASH_KEY, $classNames);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user