Skip to content

Commit 602c718

Browse files
committed
Result cache - fix result cache save and restore with Neon with statements
1 parent 41f6d34 commit 602c718

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Analyser/ResultCache/ResultCacheManager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Analyser\ResultCache;
44

5+
use Nette\Neon\Neon;
56
use PHPStan\Analyser\AnalyserResult;
67
use PHPStan\Analyser\Error;
78
use PHPStan\Command\Output;
@@ -541,7 +542,7 @@ private function getMeta(?array $projectConfigArray): array
541542
'cacheVersion' => self::CACHE_VERSION,
542543
'phpstanVersion' => $this->getPhpStanVersion(),
543544
'phpVersion' => PHP_VERSION_ID,
544-
'projectConfig' => $projectConfigArray,
545+
'projectConfig' => Neon::encode($projectConfigArray),
545546
'analysedPaths' => $this->analysedPaths,
546547
'composerLocks' => $this->getComposerLocks(),
547548
'cliAutoloadFile' => $this->cliAutoloadFile,

0 commit comments

Comments
 (0)