Skip to content

ResultCacheManager: fix meta key difference for projectConfig#3887

Merged
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
janedbal:fix-meta-key-diff
May 5, 2025
Merged

ResultCacheManager: fix meta key difference for projectConfig#3887
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
janedbal:fix-meta-key-diff

Conversation

@janedbal
Copy link
Copy Markdown
Contributor

@janedbal janedbal commented Mar 18, 2025

Previously, projectConfig was always reported as different because if was comparing neon string with array:

image

@ondrejmirtes ondrejmirtes merged commit 8f05c28 into phpstan:2.1.x May 5, 2025
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you.

@ondrejmirtes
Copy link
Copy Markdown
Member

ondrejmirtes commented May 5, 2025

I'm sorry, I had to revert this. This causes a crash when there's a pre-existing result cache (i.e. all projects).

PHP Fatal error:  Uncaught TypeError: PHPStan\Analyser\ResultCache\ResultCacheManager::normalizeMetaProjectConfig(): Argument #1 ($projectConfig) must be of type ?array, string given, called in phar:///home/runner/work/ipsum/ipsum/api/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/ResultCache/ResultCacheManager.php on line 337

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants