diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 4145ed7fb74..49bed7db22f 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -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 */ diff --git a/src/FamilyTree/Reflection/FamilyRelationsAnalyzer.php b/src/FamilyTree/Reflection/FamilyRelationsAnalyzer.php index b0ae128a822..0d837adafe8 100644 --- a/src/FamilyTree/Reflection/FamilyRelationsAnalyzer.php +++ b/src/FamilyTree/Reflection/FamilyRelationsAnalyzer.php @@ -119,14 +119,11 @@ private function loadClasses() : void } $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) { } } } diff --git a/src/NodeTypeResolver/Reflection/BetterReflection/SourceLocatorProvider/DynamicSourceLocatorProvider.php b/src/NodeTypeResolver/Reflection/BetterReflection/SourceLocatorProvider/DynamicSourceLocatorProvider.php index a0f6550f3b9..0d26b2a778d 100644 --- a/src/NodeTypeResolver/Reflection/BetterReflection/SourceLocatorProvider/DynamicSourceLocatorProvider.php +++ b/src/NodeTypeResolver/Reflection/BetterReflection/SourceLocatorProvider/DynamicSourceLocatorProvider.php @@ -136,7 +136,7 @@ private function collectClasses(AggregateSourceLocator $aggregateSourceLocator, } $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 @@ private function collectClasses(AggregateSourceLocator $aggregateSourceLocator, } } catch (CouldNotReadFileException $exception) { } - $this->cache->save($key, CacheKey::CLASSNAMES_HASH_KEY, \json_encode($classNames)); + $this->cache->save($key, CacheKey::CLASSNAMES_HASH_KEY, $classNames); } }