Skip to content

Commit b014c17

Browse files
staabmclxmstaab
andauthored
php7.x compat for the mysqli stub (#25)
Co-authored-by: Markus Staab <[email protected]>
1 parent d5d6758 commit b014c17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/Mysqli.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class mysqli_result implements Traversable, IteratorAggregate
6464
* @param array<mixed> $constructor_args
6565
* @return T|null|false
6666
*/
67-
function fetch_object(string $class = stdClass::class, array $constructor_args = []): object|false|null {}
67+
function fetch_object(string $class = 'stdClass', array $constructor_args = []) {}
6868
}
6969

7070
/**
@@ -76,4 +76,4 @@ class mysqli_result implements Traversable, IteratorAggregate
7676
* @param array<mixed> $constructor_args
7777
* @return T|null|false
7878
*/
79-
function mysqli_fetch_object(mysqli_result $result, string $class = stdClass::class, array $constructor_args = []): object|false|null {}
79+
function mysqli_fetch_object(mysqli_result $result, string $class = 'stdClass', array $constructor_args = []) {}

0 commit comments

Comments
 (0)