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

chore: remove undefined skip function

This commit is contained in:
Sam Mousa 2022-06-14 15:43:13 +02:00
parent 2e2812e845
commit e78c0a5e11
No known key found for this signature in database
GPG Key ID: A18520F9B4301C9D

View File

@ -22,11 +22,7 @@ class InternalCallMapHandlerTest extends TestCase
'ctype_xdigit', 'file_put_contents', 'sodium_crypto_generichash', 'sodium_crypto_generichash_final',
'dom_import_simplexml', 'imagegd', 'imagegd2', 'pg_exec', 'mysqli_execute', 'array_multisort'
];
/**
* Ideally these should all be false, we have them here to reduce noise while we improve the tests or the callmap.
* @var bool whether to skip functions that are not currently defined in the PHP environment
*/
private $skipUndefinedFunctions = true;
/**
*
* @var bool whether to skip params for which no definition can be found in the callMap
@ -82,9 +78,6 @@ class InternalCallMapHandlerTest extends TestCase
if (isset($callMap["$function'1"]) || preg_match("/\'\d$/", $function)) {
continue;
}
if ($this->skipUndefinedFunctions && !function_exists($function)) {
continue;
}
yield "$function: " . json_encode($entry) => [$function, $entry];
}