Skip to content

Commit

Permalink
Fix "$result contains generic type mysqli_result<mixed> but class mys…
Browse files Browse the repository at this point in the history
…qli_result is not generic" (#632)
  • Loading branch information
staabm committed Oct 12, 2023
1 parent ccabc0c commit 14d9afd
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions config/Mysqli.stub
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,3 @@ class mysqli_result implements Traversable, IteratorAggregate
*/
function fetch_object(string $class = 'stdClass', array $constructor_args = []) {}
}

/**
* @template T of object
* @template TValue
*
* @param mysqli_result<TValue> $result
* @param class-string<T> $class
* @param array<mixed> $constructor_args
* @return T|null|false
*/
function mysqli_fetch_object(mysqli_result $result, string $class = 'stdClass', array $constructor_args = []) {}

0 comments on commit 14d9afd

Please sign in to comment.