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

10026 extended InternalCallMapHandlerTest ignores for php 8.3

This commit is contained in:
Thomas Bley 2023-07-20 01:01:10 +02:00
parent 2e0f1e25e5
commit f34327e079

View File

@ -73,15 +73,28 @@ class InternalCallMapHandlerTest extends TestCase
* @var array<int|string, string|list<string>> * @var array<int|string, string|list<string>>
*/ */
private static array $ignoredFunctions = [ private static array $ignoredFunctions = [
'argumentcounterror::__clone' => ['8.3'],
'arithmeticerror::__clone' => ['8.3'],
'array_multisort', 'array_multisort',
'badfunctioncallexception::__clone' => ['8.3'],
'badmethodcallexception::__clone' => ['8.3'],
'closedgeneratorexception::__clone' => ['8.3'],
'datefmt_create' => ['8.0'], 'datefmt_create' => ['8.0'],
'domainexception::__clone' => ['8.3'],
'errorexception::__clone' => ['8.3'],
'fiber::start', 'fiber::start',
'imagefilledpolygon', 'imagefilledpolygon',
'imagegd', 'imagegd',
'imagegd2', 'imagegd2',
'imageopenpolygon', 'imageopenpolygon',
'imagepolygon', 'imagepolygon',
'intlcodepointbreakiterator::__construct' => ['8.3'],
'intlexception::__clone' => ['8.3'],
'intlgregoriancalendar::__construct', 'intlgregoriancalendar::__construct',
'invalidargumentexception::__clone' => ['8.3'],
'jsonexception::__clone' => ['8.3'],
'lengthexception::__clone' => ['8.3'],
'logicexception::__clone' => ['8.3'],
'lzf_compress', 'lzf_compress',
'lzf_decompress', 'lzf_decompress',
'mailparse_msg_extract_part', 'mailparse_msg_extract_part',
@ -140,7 +153,15 @@ class InternalCallMapHandlerTest extends TestCase
'oci_result', 'oci_result',
'ocigetbufferinglob', 'ocigetbufferinglob',
'ocisetbufferinglob', 'ocisetbufferinglob',
'outofboundsexception::__clone' => ['8.3'],
'outofrangeexception::__clone' => ['8.3'],
'overflowexception::__clone' => ['8.3'],
'parseerror::__clone' => ['8.3'],
'rangeexception::__clone' => ['8.3'],
'recursiveiteratoriterator::__construct', // Class used in CallMap does not exist: recursiveiterator 'recursiveiteratoriterator::__construct', // Class used in CallMap does not exist: recursiveiterator
'reflectionnamedtype::__clone' => ['8.3'],
'reflectionobject::__clone' => ['8.3'],
'runtimeexception::__clone' => ['8.3'],
'sqlsrv_fetch_array', 'sqlsrv_fetch_array',
'sqlsrv_fetch_object', 'sqlsrv_fetch_object',
'sqlsrv_get_field', 'sqlsrv_get_field',
@ -148,6 +169,9 @@ class InternalCallMapHandlerTest extends TestCase
'sqlsrv_query', 'sqlsrv_query',
'sqlsrv_server_info', 'sqlsrv_server_info',
'ssh2_forward_accept', 'ssh2_forward_accept',
'typeerror::__clone' => ['8.3'],
'underflowexception::__clone' => ['8.3'],
'unexpectedvalueexception::__clone' => ['8.3'],
'xdiff_file_bdiff', 'xdiff_file_bdiff',
'xdiff_file_bdiff_size', 'xdiff_file_bdiff_size',
'xdiff_file_diff', 'xdiff_file_diff',
@ -171,62 +195,79 @@ class InternalCallMapHandlerTest extends TestCase
* @var array<int|string, string|list<string>> * @var array<int|string, string|list<string>>
*/ */
private static array $ignoredReturnTypeOnlyFunctions = [ private static array $ignoredReturnTypeOnlyFunctions = [
'appenditerator::getinneriterator' => ['8.1', '8.2'], 'appenditerator::getinneriterator' => ['8.1', '8.2', '8.3'],
'appenditerator::getiteratorindex' => ['8.1', '8.2'], 'appenditerator::getiteratorindex' => ['8.1', '8.2', '8.3'],
'arrayobject::getiterator' => ['8.1', '8.2'], 'arrayobject::getiterator' => ['8.1', '8.2', '8.3'],
'cachingiterator::getinneriterator' => ['8.1', '8.2'], 'cachingiterator::getinneriterator' => ['8.1', '8.2', '8.3'],
'callbackfilteriterator::getinneriterator' => ['8.1', '8.2'], 'callbackfilteriterator::getinneriterator' => ['8.1', '8.2', '8.3'],
'curl_multi_getcontent', 'curl_multi_getcontent',
'datetime::add' => ['8.1', '8.2'], // DateTime does not contain static 'datetime::add' => ['8.1', '8.2', '8.3'], // DateTime does not contain static
'datetime::modify' => ['8.1', '8.2'], // DateTime does not contain static 'datetime::modify' => ['8.1', '8.2', '8.3'], // DateTime does not contain static
'datetime::createfromformat' => ['8.1', '8.2'], // DateTime does not contain static 'datetime::createfromformat' => ['8.1', '8.2', '8.3'], // DateTime does not contain static
'datetime::createfromimmutable' => ['8.1'], 'datetime::createfromimmutable' => ['8.1'],
'datetime::createfrominterface', 'datetime::createfrominterface',
'datetime::setdate' => ['8.1', '8.2'], // DateTime does not contain static 'datetime::setdate' => ['8.1', '8.2', '8.3'], // DateTime does not contain static
'datetime::setisodate' => ['8.1', '8.2'], // DateTime does not contain static 'datetime::setisodate' => ['8.1', '8.2', '8.3'], // DateTime does not contain static
'datetime::settime' => ['8.1', '8.2'], // DateTime does not contain static 'datetime::settime' => ['8.1', '8.2', '8.3'], // DateTime does not contain static
'datetime::settimestamp' => ['8.1', '8.2'], // DateTime does not contain static 'datetime::settimestamp' => ['8.1', '8.2', '8.3'], // DateTime does not contain static
'datetime::settimezone' => ['8.1', '8.2'], // DateTime does not contain static 'datetime::settimezone' => ['8.1', '8.2', '8.3'], // DateTime does not contain static
'datetime::sub' => ['8.1', '8.2'], // DateTime does not contain static 'datetime::sub' => ['8.1', '8.2', '8.3'], // DateTime does not contain static
'datetimeimmutable::createfrominterface', 'datetimeimmutable::createfrominterface',
'fiber::getcurrent', 'fiber::getcurrent',
'filteriterator::getinneriterator' => ['8.1', '8.2'], 'filteriterator::getinneriterator' => ['8.1', '8.2', '8.3'],
'get_cfg_var', // Ignore array return type 'get_cfg_var', // Ignore array return type
'infiniteiterator::getinneriterator' => ['8.1', '8.2'], 'infiniteiterator::getinneriterator' => ['8.1', '8.2', '8.3'],
'iteratoriterator::getinneriterator' => ['8.1', '8.2'], 'iteratoriterator::getinneriterator' => ['8.1', '8.2', '8.3'],
'limititerator::getinneriterator' => ['8.1', '8.2'], 'limititerator::getinneriterator' => ['8.1', '8.2', '8.3'],
'locale::canonicalize' => ['8.1', '8.2'], 'locale::canonicalize' => ['8.1', '8.2', '8.3'],
'locale::getallvariants' => ['8.1', '8.2'], 'locale::getallvariants' => ['8.1', '8.2', '8.3'],
'locale::getkeywords' => ['8.1', '8.2'], 'locale::getkeywords' => ['8.1', '8.2', '8.3'],
'locale::getprimarylanguage' => ['8.1', '8.2'], 'locale::getprimarylanguage' => ['8.1', '8.2', '8.3'],
'locale::getregion' => ['8.1', '8.2'], 'locale::getregion' => ['8.1', '8.2', '8.3'],
'locale::getscript' => ['8.1', '8.2'], 'locale::getscript' => ['8.1', '8.2', '8.3'],
'locale::parselocale' => ['8.1', '8.2'], 'locale::parselocale' => ['8.1', '8.2', '8.3'],
'messageformatter::create' => ['8.1', '8.2'], 'messageformatter::create' => ['8.1', '8.2', '8.3'],
'multipleiterator::current' => ['8.1', '8.2'], 'multipleiterator::current' => ['8.1', '8.2', '8.3'],
'mysqli::get_charset' => ['8.1', '8.2'], 'mysqli::get_charset' => ['8.1', '8.2', '8.3'],
'mysqli_stmt::get_warnings' => ['8.1', '8.2'], 'mysqli_stmt::get_warnings' => ['8.1', '8.2', '8.3'],
'mysqli_stmt_get_warnings', 'mysqli_stmt_get_warnings',
'mysqli_stmt_insert_id', 'mysqli_stmt_insert_id',
'norewinditerator::getinneriterator' => ['8.1', '8.2'], 'norewinditerator::getinneriterator' => ['8.1', '8.2', '8.3'],
'passthru', 'passthru',
'recursivecachingiterator::getinneriterator' => ['8.1', '8.2'], 'recursivecachingiterator::getinneriterator' => ['8.1', '8.2', '8.3'],
'recursivecallbackfilteriterator::getinneriterator' => ['8.1', '8.2'], 'recursivecallbackfilteriterator::getinneriterator' => ['8.1', '8.2', '8.3'],
'recursivefilteriterator::getinneriterator' => ['8.1', '8.2'], 'recursivefilteriterator::getinneriterator' => ['8.1', '8.2', '8.3'],
'recursiveregexiterator::getinneriterator' => ['8.1', '8.2'], 'recursiveregexiterator::getinneriterator' => ['8.1', '8.2', '8.3'],
'reflectionclass::getstaticproperties' => ['8.1', '8.2'], 'reflectionclass::getstaticproperties' => ['8.1', '8.2'],
'reflectionclass::newinstanceargs' => ['8.1', '8.2'], 'reflectionclass::newinstanceargs' => ['8.1', '8.2', '8.3'],
'reflectionfunction::getclosurescopeclass' => ['8.1', '8.2'], 'reflectionfunction::getclosurescopeclass' => ['8.1', '8.2', '8.3'],
'reflectionfunction::getclosurethis' => ['8.1', '8.2'], 'reflectionfunction::getclosurethis' => ['8.1', '8.2', '8.3'],
'reflectionmethod::getclosurescopeclass' => ['8.1', '8.2'], 'reflectionmethod::getclosurescopeclass' => ['8.1', '8.2', '8.3'],
'reflectionmethod::getclosurethis' => ['8.1', '8.2'], 'reflectionmethod::getclosurethis' => ['8.1', '8.2', '8.3'],
'reflectionobject::getstaticproperties' => ['8.1', '8.2'], 'reflectionobject::getstaticproperties' => ['8.1', '8.2'],
'reflectionobject::newinstanceargs' => ['8.1', '8.2'], 'reflectionobject::newinstanceargs' => ['8.1', '8.2', '8.3'],
'regexiterator::getinneriterator' => ['8.1', '8.2'], 'regexiterator::getinneriterator' => ['8.1', '8.2', '8.3'],
'register_shutdown_function' => ['8.0', '8.1'], 'register_shutdown_function' => ['8.0', '8.1'],
'splfileobject::fscanf' => ['8.1', '8.2'], 'splfileobject::fscanf' => ['8.1', '8.2', '8.3'],
'spltempfileobject::fscanf' => ['8.1', '8.2'], 'spltempfileobject::fscanf' => ['8.1', '8.2', '8.3'],
'xsltprocessor::transformtoxml' => ['8.1', '8.2'], 'xsltprocessor::transformtoxml' => ['8.1', '8.2', '8.3'],
'intlcal_clear' => ['8.3'],
'intlrulebasedbreakiterator::settext' => ['8.3'],
'intlcodepointbreakiterator::__construct' => ['8.3'],
'intlcodepointbreakiterator::settext' => ['8.3'],
'intldateformatter::settimezone' => ['8.3'],
'intlchar::enumcharnames' => ['8.3'],
'intlbreakiterator::settext' => ['8.3'],
'intlcal_set_lenient' => ['8.3'],
'intlcal_set_first_day_of_week' => ['8.3'],
'datefmt_set_timezone' => ['8.3'],
'imap_setflag_full' => ['8.3'],
'imap_expunge' => ['8.3'],
'imap_gc' => ['8.3'],
'imap_undelete' => ['8.3'],
'imap_delete' => ['8.3'],
'imap_clearflag_full' => ['8.3'],
'imap_close' => ['8.3'],
]; ];
/** /**