Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
- Loading branch information
1 parent
c4c97d3
commit 63a330e
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?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 {} |