Skip to content

Commit

Permalink
Result cache - fix result cache save and restore with Neon with state…
Browse files Browse the repository at this point in the history
…ments
  • Loading branch information
ondrejmirtes committed Nov 27, 2020
1 parent 41f6d34 commit 602c718
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Analyser/ResultCache/ResultCacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace PHPStan\Analyser\ResultCache;

use Nette\Neon\Neon;
use PHPStan\Analyser\AnalyserResult;
use PHPStan\Analyser\Error;
use PHPStan\Command\Output;
Expand Down Expand Up @@ -541,7 +542,7 @@ private function getMeta(?array $projectConfigArray): array
'cacheVersion' => self::CACHE_VERSION,
'phpstanVersion' => $this->getPhpStanVersion(),
'phpVersion' => PHP_VERSION_ID,
'projectConfig' => $projectConfigArray,
'projectConfig' => Neon::encode($projectConfigArray),
'analysedPaths' => $this->analysedPaths,
'composerLocks' => $this->getComposerLocks(),
'cliAutoloadFile' => $this->cliAutoloadFile,
Expand Down

0 comments on commit 602c718

Please sign in to comment.