Composer updates
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
class mysqli
|
||||
{
|
||||
/**
|
||||
* @var int<-1, max>|numeric-string
|
||||
*/
|
||||
public int|string $affected_rows;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue
|
||||
*
|
||||
@@ -7,6 +15,11 @@
|
||||
*/
|
||||
class mysqli_result implements Traversable
|
||||
{
|
||||
/**
|
||||
* @var int<0, max>|numeric-string
|
||||
*/
|
||||
public int|string $num_rows;
|
||||
|
||||
/**
|
||||
* @psalm-taint-sink callable $class
|
||||
*
|
||||
@@ -18,6 +31,44 @@ class mysqli_result implements Traversable
|
||||
function fetch_object(string $class = stdClass::class, array $constructor_args = []): object|false|null {}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* @psalm-taint-sink callable $class
|
||||
|
||||
@@ -53,6 +53,7 @@ class SimpleXMLElement implements Traversable, Countable
|
||||
|
||||
final public function __construct(string $data, int $options = 0, bool $dataIsURL = false, string $namespaceOrPrefix = '', bool $isPrefix = false) {}
|
||||
|
||||
/** @psalm-ignore-nullable-return */
|
||||
public function addChild(string $qualifiedName, ?string $value = null, ?string $namespace = null): ?SimpleXMLElement {}
|
||||
|
||||
public function addAttribute(string $qualifiedName, string $value, ?string $namespace = null): void {}
|
||||
|
||||
Reference in New Issue
Block a user