1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 08:49:52 +01:00
psalm/stubs/mysqli.phpstub

34 lines
807 B
Plaintext
Raw Normal View History

<?php
/**
* @template TValue
*
* @template-implements Traversable<int, TValue>
*/
class mysqli_result implements Traversable
{
/**
* @psalm-taint-sink callable $class
2021-11-28 13:22:41 +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 {}
}
/**
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
*
* @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
*/
function mysqli_fetch_object(mysqli_result $result, string $class = stdClass::class, array $constructor_args = []): object|false|null {}