2021-11-24 23:18:48 +01:00
|
|
|
<?php
|
|
|
|
|
2023-03-21 01:00:57 +01:00
|
|
|
class mysqli
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var int<-1, max>|numeric-string
|
|
|
|
*/
|
|
|
|
public int|string $affected_rows;
|
|
|
|
}
|
|
|
|
|
2021-11-24 23:18:48 +01:00
|
|
|
/**
|
|
|
|
* @template TValue
|
|
|
|
*
|
|
|
|
* @template-implements Traversable<int, TValue>
|
|
|
|
*/
|
|
|
|
class mysqli_result implements Traversable
|
|
|
|
{
|
2023-03-21 01:00:57 +01:00
|
|
|
/**
|
|
|
|
* @var int<0, max>|numeric-string
|
|
|
|
*/
|
|
|
|
public int|string $num_rows;
|
|
|
|
|
2021-11-24 23:18:48 +01:00
|
|
|
/**
|
|
|
|
* @psalm-taint-sink callable $class
|
2021-11-28 13:22:41 +01:00
|
|
|
*
|
2021-11-24 23:18:48 +01:00
|
|
|
* @template T of object
|
|
|
|
* @param class-string<T> $class
|
|
|
|
* @param array $constructor_args
|
|
|
|
* @return T|null|false
|
|
|
|
*/
|
|
|
|
function fetch_object(string $class = stdClass::class, array $constructor_args = []): object|false|null {}
|
|
|
|
}
|
|
|
|
|
2023-03-21 01:00:57 +01:00
|
|
|
class mysqli_stmt
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var int<-1, max>|numeric-string
|
|
|
|
*/
|
|
|
|
public int|string $affected_rows;
|
|
|
|
|
|
|
|
public int $errno;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var list<array{errno: int, sqlstate: string, error: string}>
|
|
|
|
*/
|
|
|
|
public $error_list;
|
|
|
|
|
|
|
|
public string $error;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var 0|positive-int
|
|
|
|
*/
|
|
|
|
public int $field_count;
|
|
|
|
|
|
|
|
public int|string $insert_id;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int<0,max>|numeric-string
|
|
|
|
*/
|
|
|
|
public int|string $num_rows;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var 0|positive-int
|
|
|
|
*/
|
|
|
|
public int $param_count;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var non-empty-string
|
|
|
|
*/
|
|
|
|
public string $sqlstate;
|
|
|
|
}
|
2021-11-24 23:18:48 +01:00
|
|
|
|
|
|
|
/**
|
2021-11-28 13:22:41 +01:00
|
|
|
* @psalm-taint-sink callable $class
|
|
|
|
*
|
|
|
|
* @template T of object
|
2021-12-29 16:56:09 +01:00
|
|
|
* @template TValue
|
2021-12-29 16:50:38 +01:00
|
|
|
*
|
|
|
|
* @param mysqli_result<TValue> $result
|
2021-11-28 13:22:41 +01:00
|
|
|
* @param class-string<T> $class
|
|
|
|
* @param array $constructor_args
|
|
|
|
* @return T|null|false
|
|
|
|
*/
|
2021-11-24 23:18:48 +01:00
|
|
|
function mysqli_fetch_object(mysqli_result $result, string $class = stdClass::class, array $constructor_args = []): object|false|null {}
|