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

Fix oci8 stubs for PHP 8 (#5478)

This commit is contained in:
Sergei Morozov 2021-03-24 21:49:53 -07:00 committed by GitHub
parent a025311e39
commit b627962e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9100,14 +9100,14 @@ return [
'oci_cancel' => ['bool', 'statement'=>'resource'], 'oci_cancel' => ['bool', 'statement'=>'resource'],
'oci_client_version' => ['string'], 'oci_client_version' => ['string'],
'oci_close' => ['bool', 'connection'=>'resource'], 'oci_close' => ['bool', 'connection'=>'resource'],
'OCI_Collection::append' => ['bool', 'value'=>'mixed'], 'OCICollection::append' => ['bool', 'value'=>'mixed'],
'OCI_Collection::assign' => ['bool', 'from'=>'OCI_Collection'], 'OCICollection::assign' => ['bool', 'from'=>'OCI_Collection'],
'OCI_Collection::assignElem' => ['bool', 'index'=>'int', 'value'=>'mixed'], 'OCICollection::assignElem' => ['bool', 'index'=>'int', 'value'=>'mixed'],
'OCI_Collection::free' => ['bool'], 'OCICollection::free' => ['bool'],
'OCI_Collection::getElem' => ['mixed', 'index'=>'int'], 'OCICollection::getElem' => ['mixed', 'index'=>'int'],
'OCI_Collection::max' => ['int|false'], 'OCICollection::max' => ['int|false'],
'OCI_Collection::size' => ['int|false'], 'OCICollection::size' => ['int|false'],
'OCI_Collection::trim' => ['bool', 'num'=>'int'], 'OCICollection::trim' => ['bool', 'num'=>'int'],
'oci_collection_append' => ['bool', 'collection'=>'string'], 'oci_collection_append' => ['bool', 'collection'=>'string'],
'oci_collection_assign' => ['bool', 'to'=>'object'], 'oci_collection_assign' => ['bool', 'to'=>'object'],
'oci_collection_element_assign' => ['bool', 'collection'=>'int', 'index'=>'string'], 'oci_collection_element_assign' => ['bool', 'collection'=>'int', 'index'=>'string'],
@ -9140,37 +9140,37 @@ return [
'oci_get_implicit' => ['bool', 'stmt'=>''], 'oci_get_implicit' => ['bool', 'stmt'=>''],
'oci_get_implicit_resultset' => ['resource|false', 'statement'=>'resource'], 'oci_get_implicit_resultset' => ['resource|false', 'statement'=>'resource'],
'oci_internal_debug' => ['void', 'onoff'=>'bool'], 'oci_internal_debug' => ['void', 'onoff'=>'bool'],
'OCI_Lob::append' => ['bool', 'lob_from'=>'OCI_Lob'], 'OCILob::append' => ['bool', 'lob_from'=>'OCILob'],
'OCI_Lob::close' => ['bool'], 'OCILob::close' => ['bool'],
'OCI_Lob::eof' => ['bool'], 'OCILob::eof' => ['bool'],
'OCI_Lob::erase' => ['int|false', 'offset='=>'int', 'length='=>'int'], 'OCILob::erase' => ['int|false', 'offset='=>'int', 'length='=>'int'],
'OCI_Lob::export' => ['bool', 'filename'=>'string', 'start='=>'int', 'length='=>'int'], 'OCILob::export' => ['bool', 'filename'=>'string', 'start='=>'int', 'length='=>'int'],
'OCI_Lob::flush' => ['bool', 'flag='=>'int'], 'OCILob::flush' => ['bool', 'flag='=>'int'],
'OCI_Lob::free' => ['bool'], 'OCILob::free' => ['bool'],
'OCI_Lob::getbuffering' => ['bool'], 'OCILob::getbuffering' => ['bool'],
'OCI_Lob::import' => ['bool', 'filename'=>'string'], 'OCILob::import' => ['bool', 'filename'=>'string'],
'OCI_Lob::load' => ['string|false'], 'OCILob::load' => ['string|false'],
'OCI_Lob::read' => ['string|false', 'length'=>'int'], 'OCILob::read' => ['string|false', 'length'=>'int'],
'OCI_Lob::rewind' => ['bool'], 'OCILob::rewind' => ['bool'],
'OCI_Lob::save' => ['bool', 'data'=>'string', 'offset='=>'int'], 'OCILob::save' => ['bool', 'data'=>'string', 'offset='=>'int'],
'OCI_Lob::savefile' => ['bool', 'filename'=>''], 'OCILob::savefile' => ['bool', 'filename'=>''],
'OCI_Lob::seek' => ['bool', 'offset'=>'int', 'whence='=>'int'], 'OCILob::seek' => ['bool', 'offset'=>'int', 'whence='=>'int'],
'OCI_Lob::setbuffering' => ['bool', 'on_off'=>'bool'], 'OCILob::setbuffering' => ['bool', 'on_off'=>'bool'],
'OCI_Lob::size' => ['int|false'], 'OCILob::size' => ['int|false'],
'OCI_Lob::tell' => ['int|false'], 'OCILob::tell' => ['int|false'],
'OCI_Lob::truncate' => ['bool', 'length='=>'int'], 'OCILob::truncate' => ['bool', 'length='=>'int'],
'OCI_Lob::write' => ['int|false', 'data'=>'string', 'length='=>'int'], 'OCILob::write' => ['int|false', 'data'=>'string', 'length='=>'int'],
'OCI_Lob::writeTemporary' => ['bool', 'data'=>'string', 'lob_type='=>'int'], 'OCILob::writeTemporary' => ['bool', 'data'=>'string', 'lob_type='=>'int'],
'OCI_Lob::writetofile' => ['bool', 'filename'=>'', 'start'=>'', 'length'=>''], 'OCILob::writetofile' => ['bool', 'filename'=>'', 'start'=>'', 'length'=>''],
'oci_lob_append' => ['bool', 'to'=>'object'], 'oci_lob_append' => ['bool', 'to'=>'object'],
'oci_lob_close' => ['bool'], 'oci_lob_close' => ['bool'],
'oci_lob_copy' => ['bool', 'to'=>'OCI_Lob', 'from'=>'OCI_Lob', 'length='=>'int'], 'oci_lob_copy' => ['bool', 'to'=>'OCILob', 'from'=>'OCILob', 'length='=>'int'],
'oci_lob_eof' => ['bool'], 'oci_lob_eof' => ['bool'],
'oci_lob_erase' => ['int', 'lob'=>'int', 'offset'=>'int'], 'oci_lob_erase' => ['int', 'lob'=>'int', 'offset'=>'int'],
'oci_lob_export' => ['bool', 'lob'=>'string', 'filename'=>'int', 'offset'=>'int'], 'oci_lob_export' => ['bool', 'lob'=>'string', 'filename'=>'int', 'offset'=>'int'],
'oci_lob_flush' => ['bool', 'lob'=>'int'], 'oci_lob_flush' => ['bool', 'lob'=>'int'],
'oci_lob_import' => ['bool', 'lob'=>'string'], 'oci_lob_import' => ['bool', 'lob'=>'string'],
'oci_lob_is_equal' => ['bool', 'lob1'=>'OCI_Lob', 'lob2'=>'OCI_Lob'], 'oci_lob_is_equal' => ['bool', 'lob1'=>'OCILob', 'lob2'=>'OCILob'],
'oci_lob_load' => ['string'], 'oci_lob_load' => ['string'],
'oci_lob_read' => ['string', 'lob'=>'int'], 'oci_lob_read' => ['string', 'lob'=>'int'],
'oci_lob_rewind' => ['bool'], 'oci_lob_rewind' => ['bool'],
@ -9181,10 +9181,10 @@ return [
'oci_lob_truncate' => ['bool', 'lob'=>'int'], 'oci_lob_truncate' => ['bool', 'lob'=>'int'],
'oci_lob_write' => ['int', 'lob'=>'string', 'data'=>'int'], 'oci_lob_write' => ['int', 'lob'=>'string', 'data'=>'int'],
'oci_lob_write_temporary' => ['bool', 'value'=>'string', 'lob_type'=>'int'], 'oci_lob_write_temporary' => ['bool', 'value'=>'string', 'lob_type'=>'int'],
'oci_new_collection' => ['OCI_Collection|false', 'connection'=>'resource', 'type_name'=>'string', 'schema='=>'string'], 'oci_new_collection' => ['OCICollection|false', 'connection'=>'resource', 'type_name'=>'string', 'schema='=>'string'],
'oci_new_connect' => ['resource|false', 'username'=>'string', 'password'=>'string', 'connection_string='=>'string', 'encoding='=>'string', 'session_mode='=>'int'], 'oci_new_connect' => ['resource|false', 'username'=>'string', 'password'=>'string', 'connection_string='=>'string', 'encoding='=>'string', 'session_mode='=>'int'],
'oci_new_cursor' => ['resource|false', 'connection'=>'resource'], 'oci_new_cursor' => ['resource|false', 'connection'=>'resource'],
'oci_new_descriptor' => ['OCI_Lob|false', 'connection'=>'resource', 'type='=>'int'], 'oci_new_descriptor' => ['OCILob|false', 'connection'=>'resource', 'type='=>'int'],
'oci_num_fields' => ['int|false', 'statement'=>'resource'], 'oci_num_fields' => ['int|false', 'statement'=>'resource'],
'oci_num_rows' => ['int|false', 'statement'=>'resource'], 'oci_num_rows' => ['int|false', 'statement'=>'resource'],
'oci_parse' => ['resource|false', 'connection'=>'resource', 'sql'=>'string'], 'oci_parse' => ['resource|false', 'connection'=>'resource', 'sql'=>'string'],