1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

fix: add more typehints

This commit is contained in:
Sam Mousa 2022-06-15 14:46:50 +02:00
parent df750709cc
commit cc58fd9401
No known key found for this signature in database
GPG Key ID: A18520F9B4301C9D

View File

@ -183,8 +183,11 @@ class InternalCallMapHandlerTest extends TestCase
*/
public function callMapEntryProvider(): iterable
{
$project_analyzer = new ProjectAnalyzer(
/**
* This call is needed since InternalCallMapHandler uses the singleton that is initialized by it.
* @psalm-suppress all
**/
new ProjectAnalyzer(
new TestConfig(),
new Providers(
new FakeFileProvider(),
@ -226,6 +229,10 @@ class InternalCallMapHandlerTest extends TestCase
$this->assertEntryIsCorrect($callMapEntry, $functionName);
}
/**
*
* @param array<string, array> $callMapEntry
*/
private function assertEntryIsCorrect(array $callMapEntry, string $functionName): void
{
$rF = new ReflectionFunction($functionName);