Skip to content

Commit 14d9afd

Browse files
authored
Fix "$result contains generic type mysqli_result<mixed> but class mysqli_result is not generic" (#632)
1 parent ccabc0c commit 14d9afd

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

config/Mysqli.stub

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,3 @@ class mysqli_result implements Traversable, IteratorAggregate
1616
*/
1717
function fetch_object(string $class = 'stdClass', array $constructor_args = []) {}
1818
}
19-
20-
/**
21-
* @template T of object
22-
* @template TValue
23-
*
24-
* @param mysqli_result<TValue> $result
25-
* @param class-string<T> $class
26-
* @param array<mixed> $constructor_args
27-
* @return T|null|false
28-
*/
29-
function mysqli_fetch_object(mysqli_result $result, string $class = 'stdClass', array $constructor_args = []) {}

0 commit comments

Comments
 (0)