mirror of
https://github.com/php/php-src.git
synced 2026-04-22 15:38:49 +02:00
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)
This commit is contained in:
@@ -89,6 +89,7 @@ class mysqli
|
||||
/**
|
||||
* @return true
|
||||
* @alias mysqli_close
|
||||
* @no-verify
|
||||
*/
|
||||
public function close() {} // TODO make return type void
|
||||
|
||||
@@ -301,6 +302,7 @@ class mysqli
|
||||
/**
|
||||
* @return true
|
||||
* @alias mysqli_ssl_set
|
||||
* @no-verify
|
||||
*/
|
||||
public function ssl_set(
|
||||
?string $key,
|
||||
@@ -386,6 +388,7 @@ class mysqli_result implements IteratorAggregate
|
||||
public function fetch_field(): object|false {}
|
||||
|
||||
/**
|
||||
* @return array<int, object>
|
||||
* @tentative-return-type
|
||||
* @alias mysqli_fetch_fields
|
||||
*/
|
||||
@@ -422,6 +425,7 @@ class mysqli_result implements IteratorAggregate
|
||||
public function fetch_object(string $class = "stdClass", array $constructor_args = []): object|null|false {}
|
||||
|
||||
/**
|
||||
* @return array<int, mixed>|null|false
|
||||
* @tentative-return-type
|
||||
* @alias mysqli_fetch_row
|
||||
*/
|
||||
@@ -496,6 +500,7 @@ class mysqli_stmt
|
||||
/**
|
||||
* @return true
|
||||
* @alias mysqli_stmt_close
|
||||
* @no-verify
|
||||
*/
|
||||
public function close() {} // TODO make return type void
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: aca86b9ae21b5ac8043e5bd9f3aee364c7b1bb1f */
|
||||
* Stub hash: 11628afb5c66778bfd89890fdf182947383e59c1 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
|
||||
ZEND_ARG_OBJ_INFO(0, mysql, mysqli, 0)
|
||||
|
||||
Reference in New Issue
Block a user