Skip to content

Commit 7d3cdb3

Browse files
committed
Fix mysqli stub alias verification issues
I had to add a few no-verify annotations since the return type of the function and method counterparts cannot be aligned properly (easily)
1 parent 17ccabc commit 7d3cdb3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ext/mysqli/mysqli.stub.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public function character_set_name(): string {}
8989
/**
9090
* @return true
9191
* @alias mysqli_close
92+
* @no-verify
9293
*/
9394
public function close() {} // TODO make return type void
9495

@@ -301,6 +302,7 @@ public function set_opt(int $option, $value): bool {}
301302
/**
302303
* @return true
303304
* @alias mysqli_ssl_set
305+
* @no-verify
304306
*/
305307
public function ssl_set(
306308
?string $key,
@@ -386,6 +388,7 @@ public function data_seek(int $offset): bool {}
386388
public function fetch_field(): object|false {}
387389

388390
/**
391+
* @return array<int, object>
389392
* @tentative-return-type
390393
* @alias mysqli_fetch_fields
391394
*/
@@ -422,6 +425,7 @@ public function fetch_assoc(): array|null|false {}
422425
public function fetch_object(string $class = "stdClass", array $constructor_args = []): object|null|false {}
423426

424427
/**
428+
* @return array<int, mixed>|null|false
425429
* @tentative-return-type
426430
* @alias mysqli_fetch_row
427431
*/
@@ -496,6 +500,7 @@ public function bind_result(mixed &...$vars): bool {}
496500
/**
497501
* @return true
498502
* @alias mysqli_stmt_close
503+
* @no-verify
499504
*/
500505
public function close() {} // TODO make return type void
501506

ext/mysqli/mysqli_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: aca86b9ae21b5ac8043e5bd9f3aee364c7b1bb1f */
2+
* Stub hash: 11628afb5c66778bfd89890fdf182947383e59c1 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
55
ZEND_ARG_OBJ_INFO(0, mysql, mysqli, 0)

0 commit comments

Comments
 (0)