mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
31 lines
754 B
Plaintext
31 lines
754 B
Plaintext
|
<?php
|
||
|
|
||
|
/**
|
||
|
* @template TValue
|
||
|
*
|
||
|
* @template-implements Traversable<int, TValue>
|
||
|
*/
|
||
|
class mysqli_result implements Traversable
|
||
|
{
|
||
|
/**
|
||
|
* @psalm-taint-sink callable $class
|
||
|
|
||
|
* @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 {}
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @psalm-taint-sink callable $class
|
||
|
|
||
|
* @template T of object
|
||
|
* @param class-string<T> $class
|
||
|
* @param array $constructor_args
|
||
|
* @return T|null|false
|
||
|
*/
|
||
|
function mysqli_fetch_object(mysqli_result $result, string $class = stdClass::class, array $constructor_args = []): object|false|null {}
|