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

61 lines
3.2 KiB
PHP
Raw Normal View History

2022-10-30 22:43:40 +01:00
<?php // phpcs:ignoreFile
/**
* This contains the information needed to convert the function signatures for php 8.2 to php 8.1 (and vice versa)
*
* This file has three sections.
* The 'added' section contains function/method names from FunctionSignatureMap (And alternates, if applicable) that do not exist in php 8.1
* The 'removed' section contains the signatures that were removed in php 8.2
* The 'changed' section contains functions for which the signature has changed for php 8.2.
* Each function in the 'changed' section has an 'old' and a 'new' section,
* representing the function as it was in PHP 8.1 and in PHP 8.2, respectively
*
* @see CallMap.php
*
* @phan-file-suppress PhanPluginMixedKeyNoKey (read by Phan when analyzing this file)
*/
return [
'added' => [
2023-02-12 08:24:43 +01:00
'mysqli_execute_query' => ['mysqli_result|bool', 'mysql'=>'mysqli', 'query'=>'non-empty-string', 'params='=>'list<mixed>|null'],
'mysqli::execute_query' => ['mysqli_result|bool', 'query'=>'non-empty-string', 'params='=>'list<mixed>|null'],
2022-10-30 22:43:40 +01:00
'openssl_cipher_key_length' => ['positive-int|false', 'cipher_algo'=>'non-empty-string'],
'curl_upkeep' => ['bool', 'handle'=>'CurlHandle'],
'imap_is_open' => ['bool', 'imap'=>'IMAP\Connection'],
2022-10-30 22:43:40 +01:00
'ini_parse_quantity' => ['int', 'shorthand'=>'non-empty-string'],
'libxml_get_external_entity_loader' => ['(callable(string,string,array{directory:?string,intSubName:?string,extSubURI:?string,extSubSystem:?string}):(resource|string|null))|null'],
2022-10-30 22:43:40 +01:00
'memory_reset_peak_usage' => ['void'],
'sodium_crypto_stream_xchacha20_xor_ic' => ['string', 'message'=>'string', 'nonce'=>'non-empty-string', 'counter'=>'int', 'key'=>'non-empty-string'],
'ZipArchive::clearError' => ['void'],
'ZipArchive::getStreamIndex' => ['resource|false', 'index'=>'int', 'flags='=>'int'],
'ZipArchive::getStreamName' => ['resource|false', 'name'=>'string', 'flags='=>'int'],
'DateTimeInterface::__serialize' => ['array'],
'DateTimeInterface::__unserialize' => ['void', 'data'=>'array'],
2022-10-30 22:43:40 +01:00
],
'changed' => [
2023-02-12 08:24:43 +01:00
'dba_open' => [
'old' => ['resource', 'path'=>'string', 'mode'=>'string', 'handler='=>'string', '...handler_params='=>'string'],
'new' => ['resource', 'path'=>'string', 'mode'=>'string', 'handler='=>'?string', 'permission='=>'int', 'map_size='=>'int', 'flags='=>'?int'],
],
'dba_popen' => [
'old' => ['resource', 'path'=>'string', 'mode'=>'string', 'handler='=>'string', '...handler_params='=>'string'],
'new' => ['resource', 'path'=>'string', 'mode'=>'string', 'handler='=>'?string', 'permission='=>'int', 'map_size='=>'int', 'flags='=>'?int'],
],
'iterator_count' => [
'old' => ['0|positive-int', 'iterator'=>'Traversable'],
'new' => ['0|positive-int', 'iterator'=>'Traversable|array'],
],
'iterator_to_array' => [
'old' => ['array', 'iterator'=>'Traversable', 'preserve_keys='=>'bool'],
'new' => ['array', 'iterator'=>'Traversable|array', 'preserve_keys='=>'bool'],
],
2022-10-30 22:43:40 +01:00
'str_split' => [
'old' => ['non-empty-list<string>', 'string'=>'string', 'length='=>'positive-int'],
2023-03-13 01:02:34 +01:00
'new' => ['list<non-empty-string>', 'string'=>'string', 'length='=>'positive-int'],
2022-10-30 22:43:40 +01:00
],
],
2022-10-30 23:42:05 +01:00
'removed' => [
],
2022-10-30 22:43:40 +01:00
];