Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"PHPStan / Psalm / Generics" => "The reference cache must be an array" #3300

Closed
voku opened this issue May 4, 2020 · 2 comments
Closed

"PHPStan / Psalm / Generics" => "The reference cache must be an array" #3300

voku opened this issue May 4, 2020 · 2 comments

Comments

@voku
Copy link
Contributor

voku commented May 4, 2020

I am trying to use the "PHPStan / Psalm / Generics"-Plugin for PhpStorm but I see some error in my local error log.

unserialize(): Error at offset 552956 of 552960 bytes

⇉ If I look for the file on the filesystem, this file is already deleted, so maybe the plugin is using psalm in a non-optimal way (or it's related to a Java Exception from the Plugin?!), or why do we try to fetch non-existing cache files?

UnexpectedValueException: The reference cache must be an array
#5 phar:///home/lmoelleken/vdmg/Framework/thirdparty/psalm.phar/src/Psalm/Internal/Provider/FileReferenceCacheProvider.php(154): getCachedMethodMemberReferences
#4 phar:///home/lmoelleken/vdmg/Framework/thirdparty/psalm.phar/src/Psalm/Internal/Provider/FileReferenceProvider.php(402): loadReferenceCache
#3 phar:///home/lmoelleken/vdmg/Framework/thirdparty/psalm.phar/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php(770): checkPaths
#2 phar:///home/lmoelleken/vdmg/Framework/thirdparty/psalm.phar/src/psalm.php(398): require_once
#1 phar:///home/lmoelleken/vdmg/Framework/thirdparty/psalm.phar/psalm(5): require
#0 Framework/thirdparty/psalm.phar(14): null
@psalm-github-bot
Copy link

Hey @voku, can you reproduce the issue on https://psalm.dev ?

@muglug
Copy link
Collaborator

muglug commented May 4, 2020

I'm going to close this – Psalm already has support for PHPStorm via the Language Server Protocol, and I'm not going to support third-party solutions (though you're welcome to debug it yourself)

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

No branches or pull requests

2 participants