1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/tests/Internal/Provider
Joe Hoyle c837535c9d
Remove file map cache when re-analyzing files (#5084)
* Remove file map cache when re-analyzing files

When the project is re-analyzed under the single thread condition (not using a process pool), the filemaps are not cleared before re-analyzing files. This means that file maps only get appended to. If you delete the contents of a file via the LSP, the file map will still be populated with all the old values for example.

In doing this I had to write a few more tests to check my assumptions too, so adding those additional tests.

* Rename test

* Formatting

* Formatting again!
2021-01-29 11:47:34 +01:00
..
ClassLikeStorageInstanceCacheProvider.php return types (#4311) 2021-01-29 11:39:53 +01:00
FakeFileProvider.php Remove file map cache when re-analyzing files (#5084) 2021-01-29 11:47:34 +01:00
FakeFileReferenceCacheProvider.php return types (#4311) 2021-01-29 11:39:53 +01:00
FakeParserCacheProvider.php Do no writing when saving parser cache in tests 2021-01-29 11:39:36 +01:00
FileStorageInstanceCacheProvider.php Document lowercase-string when possible (#4904) 2021-01-29 11:47:22 +01:00
ParserInstanceCacheProvider.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ProjectCacheProvider.php Fix #4464 - bust cache when Psalm’s version changes, not just composer’s 2021-01-29 11:45:01 +01:00