mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 12:24:49 +01:00
Fix CallMap of PDOStatement for PHP8 (#5100)
The definitions are based on the php-src stub. 4bbb98c24f/ext/pdo/pdo_stmt.stub.php
This commit is contained in:
parent
ae54b72dba
commit
995f89e8b9
@ -9874,28 +9874,25 @@ return [
|
||||
'PDOException::getTraceAsString' => ['string'],
|
||||
'PDOStatement::__sleep' => ['list<string>'],
|
||||
'PDOStatement::__wakeup' => ['void'],
|
||||
'PDOStatement::bindColumn' => ['bool', 'column'=>'mixed', '&rw_param'=>'mixed', 'type='=>'int', 'maxlen='=>'int', 'driverdata='=>'mixed'],
|
||||
'PDOStatement::bindParam' => ['bool', 'paramno'=>'mixed', '&rw_param'=>'mixed', 'type='=>'int', 'maxlen='=>'int', 'driverdata='=>'mixed'],
|
||||
'PDOStatement::bindValue' => ['bool', 'paramno'=>'mixed', 'param'=>'mixed', 'type='=>'int'],
|
||||
'PDOStatement::bindColumn' => ['bool', 'column'=>'mixed', '&rw_var'=>'mixed', 'type='=>'int', 'maxLength='=>'int', 'driverOptions='=>'mixed'],
|
||||
'PDOStatement::bindParam' => ['bool', 'param,'=>'string|int', '&rw_var'=>'mixed', 'type='=>'int', 'maxLength='=>'int', 'driverOptions='=>'mixed'],
|
||||
'PDOStatement::bindValue' => ['bool', 'param'=>'string|int', 'value'=>'mixed', 'type='=>'int'],
|
||||
'PDOStatement::closeCursor' => ['bool'],
|
||||
'PDOStatement::columnCount' => ['int'],
|
||||
'PDOStatement::debugDumpParams' => ['void'],
|
||||
'PDOStatement::errorCode' => ['string'],
|
||||
'PDOStatement::debugDumpParams' => ['bool|null'],
|
||||
'PDOStatement::errorCode' => ['string|null'],
|
||||
'PDOStatement::errorInfo' => ['array'],
|
||||
'PDOStatement::execute' => ['bool', 'bound_input_params='=>'?array'],
|
||||
'PDOStatement::fetch' => ['mixed', 'how='=>'int', 'orientation='=>'int', 'offset='=>'int'],
|
||||
'PDOStatement::fetchAll' => ['array|false', 'how='=>'int', 'fetch_argument='=>'int|string|callable', 'ctor_args='=>'?array'],
|
||||
'PDOStatement::fetchColumn' => ['string|int|float|bool|null', 'column_number='=>'int'],
|
||||
'PDOStatement::fetchObject' => ['object|false', 'class_name='=>'string', 'ctor_args='=>'array'],
|
||||
'PDOStatement::execute' => ['bool', 'params='=>'?array'],
|
||||
'PDOStatement::fetch' => ['mixed', 'mode='=>'int', 'cursorOrientation='=>'int', 'cursorOffset='=>'int'],
|
||||
'PDOStatement::fetchAll' => ['array', 'mode='=>'int', '...args='=>'mixed'],
|
||||
'PDOStatement::fetchColumn' => ['mixed', 'column='=>'int'],
|
||||
'PDOStatement::fetchObject' => ['object|false', 'class='=>'?string', 'ctorArgs='=>'?array'],
|
||||
'PDOStatement::getAttribute' => ['mixed', 'attribute'=>'int'],
|
||||
'PDOStatement::getColumnMeta' => ['array|false', 'column'=>'int'],
|
||||
'PDOStatement::nextRowset' => ['bool'],
|
||||
'PDOStatement::rowCount' => ['int'],
|
||||
'PDOStatement::setAttribute' => ['bool', 'attribute'=>'int', 'value'=>'mixed'],
|
||||
'PDOStatement::setFetchMode' => ['bool', 'mode'=>'int'],
|
||||
'PDOStatement::setFetchMode\'1' => ['bool', 'fetch_column'=>'int', 'colno'=>'int'],
|
||||
'PDOStatement::setFetchMode\'2' => ['bool', 'fetch_class'=>'int', 'classname'=>'string', 'ctorargs'=>'array'],
|
||||
'PDOStatement::setFetchMode\'3' => ['bool', 'fetch_into'=>'int', 'object'=>'object'],
|
||||
'PDOStatement::setFetchMode' => ['bool', 'mode'=>'int', '...args='=> 'mixed'],
|
||||
'pfsockopen' => ['resource|false', 'hostname'=>'string', 'port='=>'int', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'float'],
|
||||
'pg_affected_rows' => ['int', 'result'=>'resource'],
|
||||
'pg_cancel_query' => ['bool', 'connection'=>'resource'],
|
||||
|
@ -96,6 +96,17 @@ return [
|
||||
'mktime' => ['int|false', 'hour'=>'int', 'minute='=>'int', 'second='=>'int', 'month='=>'int', 'day='=>'int', 'year='=>'int'],
|
||||
'parse_str' => ['void', 'encoded_string'=>'string', '&w_result'=>'array'],
|
||||
'password_hash' => ['string', 'password'=>'string', 'algo'=>'?string|?int', 'options='=>'array'],
|
||||
'PDOStatement::bindColumn' => ['bool', 'column'=>'mixed', '&rw_var'=>'mixed', 'type='=>'int', 'maxLength='=>'int', 'driverOptions='=>'mixed'],
|
||||
'PDOStatement::bindParam' => ['bool', 'param,'=>'string|int', '&rw_var'=>'mixed', 'type='=>'int', 'maxLength='=>'int', 'driverOptions='=>'mixed'],
|
||||
'PDOStatement::bindValue' => ['bool', 'param'=>'string|int', 'value'=>'mixed', 'type='=>'int'],
|
||||
'PDOStatement::debugDumpParams' => ['bool|null'],
|
||||
'PDOStatement::errorCode' => ['string|null'],
|
||||
'PDOStatement::execute' => ['bool', 'params='=>'?array'],
|
||||
'PDOStatement::fetch' => ['mixed', 'mode='=>'int', 'cursorOrientation='=>'int', 'cursorOffset='=>'int'],
|
||||
'PDOStatement::fetchAll' => ['array', 'mode='=>'int', '...args='=>'mixed'],
|
||||
'PDOStatement::fetchColumn' => ['mixed', 'column='=>'int'],
|
||||
'PDOStatement::fetchObject' => ['object|false', 'class='=>'?string', 'ctorArgs='=>'?array'],
|
||||
'PDOStatement::setFetchMode' => ['bool', 'mode'=>'int', '...args='=> 'mixed'],
|
||||
'PhpToken::getAll' => ['list<PhpToken>', 'code'=>'string', 'flags='=>'int'],
|
||||
'PhpToken::is' => ['bool', 'kind'=>'string|int|string[]|int[]'],
|
||||
'PhpToken::isIgnorable' => ['bool'],
|
||||
@ -287,6 +298,20 @@ return [
|
||||
'mktime' => ['int|false', 'hour='=>'int', 'minute='=>'int', 'second='=>'int', 'month='=>'int', 'day='=>'int', 'year='=>'int'],
|
||||
'parse_str' => ['void', 'encoded_string'=>'string', '&w_result='=>'array'],
|
||||
'password_hash' => ['string|false|null', 'password'=>'string', 'algo'=>'?string|?int', 'options='=>'array'],
|
||||
'PDOStatement::bindColumn' => ['bool', 'column'=>'mixed', '&rw_param'=>'mixed', 'type='=>'int', 'maxlen='=>'int', 'driverdata='=>'mixed'],
|
||||
'PDOStatement::bindParam' => ['bool', 'paramno'=>'mixed', '&rw_param'=>'mixed', 'type='=>'int', 'maxlen='=>'int', 'driverdata='=>'mixed'],
|
||||
'PDOStatement::bindValue' => ['bool', 'paramno'=>'mixed', 'param'=>'mixed', 'type='=>'int'],
|
||||
'PDOStatement::debugDumpParams' => ['void'],
|
||||
'PDOStatement::errorCode' => ['string'],
|
||||
'PDOStatement::execute' => ['bool', 'bound_input_params='=>'?array'],
|
||||
'PDOStatement::fetch' => ['mixed', 'how='=>'int', 'orientation='=>'int', 'offset='=>'int'],
|
||||
'PDOStatement::fetchAll' => ['array|false', 'how='=>'int', 'fetch_argument='=>'int|string|callable', 'ctor_args='=>'?array'],
|
||||
'PDOStatement::fetchColumn' => ['string|int|float|bool|null', 'column_number='=>'int'],
|
||||
'PDOStatement::fetchObject' => ['object|false', 'class_name='=>'string', 'ctor_args='=>'array'],
|
||||
'PDOStatement::setFetchMode' => ['bool', 'mode'=>'int'],
|
||||
'PDOStatement::setFetchMode\'1' => ['bool', 'fetch_column'=>'int', 'colno'=>'int'],
|
||||
'PDOStatement::setFetchMode\'2' => ['bool', 'fetch_class'=>'int', 'classname'=>'string', 'ctorargs'=>'array'],
|
||||
'PDOStatement::setFetchMode\'3' => ['bool', 'fetch_into'=>'int', 'object'=>'object'],
|
||||
'png2wbmp' => ['bool', 'pngname'=>'string', 'wbmpname'=>'string', 'dest_height'=>'int', 'dest_width'=>'int', 'threshold'=>'int'],
|
||||
'proc_get_status' => ['array<string,int|string|bool>|false', 'process'=>'resource'],
|
||||
'read_exif_data' => ['array', 'filename'=>'string', 'sections_needed='=>'string', 'sub_arrays='=>'bool', 'read_thumbnail='=>'bool'],
|
||||
|
Loading…
Reference in New Issue
Block a user