@@ -36,7 +36,7 @@ public function begin_transaction(int $flags = 0, ?string $name = null) {}
3636 public function change_user (string $ username , string $ password , ?string $ database ) {}
3737
3838 /**
39- * @return string|null
39+ * @return string
4040 * @alias mysqli_character_set_name
4141 */
4242 public function character_set_name () {}
@@ -51,7 +51,7 @@ public function close() {}
5151 * @return bool
5252 * @alias mysqli_commit
5353 */
54- public function commit (int $ flags = - 1 , ?string $ name = null ) {}
54+ public function commit (int $ flags = 0 , ?string $ name = null ) {}
5555
5656 /**
5757 * @return mysqli|null|false
@@ -101,7 +101,7 @@ public function get_connection_stats() {}
101101#endif
102102
103103 /**
104- * @return string|null
104+ * @return string
105105 * @alias mysqli_get_server_info
106106 */
107107 public function get_server_info () {}
@@ -152,7 +152,7 @@ public function ping() {}
152152 * @return int|false
153153 * @alias mysqli_poll
154154 */
155- public static function poll (?array &$ read , ?array &$ write , array &$ error , int $ seconds , int $ microseconds = 0 ) {}
155+ public static function poll (?array &$ read , ?array &$ error , array &$ reject , int $ seconds , int $ microseconds = 0 ) {}
156156#endif
157157
158158 /**
@@ -342,7 +342,7 @@ public function fetch_field_direct(int $index) {}
342342
343343#if defined(MYSQLI_USE_MYSQLND)
344344 /**
345- * @return array|false
345+ * @return array
346346 * @alias mysqli_fetch_all
347347 */
348348 public function fetch_all (int $ mode = MYSQLI_NUM ) {}
@@ -392,7 +392,7 @@ class mysqli_stmt
392392 public function __construct (mysqli $ mysql , ?string $ query = null ) {}
393393
394394 /**
395- * @return int|false
395+ * @return int
396396 * @alias mysqli_stmt_attr_get
397397 */
398398 public function attr_get (int $ attribute ) {}
@@ -529,11 +529,11 @@ function mysqli_begin_transaction(mysqli $mysql, int $flags = 0, ?string $name =
529529
530530function mysqli_change_user (mysqli $ mysql , string $ username , string $ password , ?string $ database ): bool {}
531531
532- function mysqli_character_set_name (mysqli $ mysql ): ? string {}
532+ function mysqli_character_set_name (mysqli $ mysql ): string {}
533533
534534function mysqli_close (mysqli $ mysql ): bool {}
535535
536- function mysqli_commit (mysqli $ mysql , int $ flags = - 1 , ?string $ name = null ): bool {}
536+ function mysqli_commit (mysqli $ mysql , int $ flags = 0 , ?string $ name = null ): bool {}
537537
538538function mysqli_connect (
539539 ?string $ hostname = null ,
@@ -556,7 +556,7 @@ function mysqli_debug(string $options): bool {}
556556
557557function mysqli_errno (mysqli $ mysql ): int {}
558558
559- function mysqli_error (mysqli $ mysql ): ? string {}
559+ function mysqli_error (mysqli $ mysql ): string {}
560560
561561function mysqli_error_list (mysqli $ mysql ): array {}
562562
@@ -574,16 +574,16 @@ function mysqli_fetch_field_direct(mysqli_result $result, int $index): object|fa
574574function mysqli_fetch_lengths (mysqli_result $ result ): array |false {}
575575
576576#if defined(MYSQLI_USE_MYSQLND)
577- function mysqli_fetch_all (mysqli_result $ result , int $ mode = MYSQLI_NUM ): array | false {}
577+ function mysqli_fetch_all (mysqli_result $ result , int $ mode = MYSQLI_NUM ): array {}
578578#endif
579579
580580function mysqli_fetch_array (mysqli_result $ result , int $ mode = MYSQLI_BOTH ): array |null |false {}
581581
582- function mysqli_fetch_assoc (mysqli_result $ result ): ? array {}
582+ function mysqli_fetch_assoc (mysqli_result $ result ): array | null | false {}
583583
584- function mysqli_fetch_object (mysqli_result $ result , string $ class = "stdClass " , array $ constructor_args = []): ? object {}
584+ function mysqli_fetch_object (mysqli_result $ result , string $ class = "stdClass " , array $ constructor_args = []): object | null | false {}
585585
586- function mysqli_fetch_row (mysqli_result $ result ): ? array {}
586+ function mysqli_fetch_row (mysqli_result $ result ): array | null | false {}
587587
588588function mysqli_field_count (mysqli $ mysql ): int {}
589589
@@ -638,10 +638,16 @@ function mysqli_num_rows(mysqli_result $result): int|string {}
638638/** @param string|int $value */
639639function mysqli_options (mysqli $ mysql , int $ option , $ value ): bool {}
640640
641+ /**
642+ * @param string|int $value
643+ * @alias mysqli_options
644+ */
645+ function mysqli_set_opt (mysqli $ mysql , int $ option , $ value ): bool {}
646+
641647function mysqli_ping (mysqli $ mysql ): bool {}
642648
643649#if defined(MYSQLI_USE_MYSQLND)
644- function mysqli_poll (?array &$ read , ?array &$ write , array &$ error , int $ seconds , int $ microseconds = 0 ): int |false {}
650+ function mysqli_poll (?array &$ read , ?array &$ error , array &$ reject , int $ seconds , int $ microseconds = 0 ): int |false {}
645651#endif
646652
647653function mysqli_prepare (mysqli $ mysql , string $ query ): mysqli_stmt |false {}
@@ -663,6 +669,9 @@ function mysqli_real_connect(
663669
664670function mysqli_real_escape_string (mysqli $ mysql , string $ string ): string {}
665671
672+ /** @alias mysqli_real_escape_string */
673+ function mysqli_escape_string (mysqli $ mysql , string $ string ): string {}
674+
666675function mysqli_real_query (mysqli $ mysql , string $ query ): bool {}
667676
668677#if defined(MYSQLI_USE_MYSQLND)
@@ -695,7 +704,7 @@ function mysqli_stmt_data_seek(mysqli_stmt $statement, int $offset): void {}
695704
696705function mysqli_stmt_errno (mysqli_stmt $ statement ): int {}
697706
698- function mysqli_stmt_error (mysqli_stmt $ statement ): ? string {}
707+ function mysqli_stmt_error (mysqli_stmt $ statement ): string {}
699708
700709function mysqli_stmt_error_list (mysqli_stmt $ statement ): array {}
701710
@@ -735,9 +744,9 @@ function mysqli_stmt_send_long_data(mysqli_stmt $statement, int $param_num, stri
735744
736745function mysqli_stmt_store_result (mysqli_stmt $ statement ): bool {}
737746
738- function mysqli_stmt_sqlstate (mysqli_stmt $ statement ): ? string {}
747+ function mysqli_stmt_sqlstate (mysqli_stmt $ statement ): string {}
739748
740- function mysqli_sqlstate (mysqli $ mysql ): ? string {}
749+ function mysqli_sqlstate (mysqli $ mysql ): string {}
741750
742751function mysqli_ssl_set (
743752 mysqli $ mysql ,
@@ -761,12 +770,3 @@ function mysqli_use_result(mysqli $mysql): mysqli_result|false {}
761770function mysqli_warning_count (mysqli $ mysql ): int {}
762771
763772function mysqli_refresh (mysqli $ mysql , int $ flags ): bool {}
764-
765- /** @alias mysqli_real_escape_string */
766- function mysqli_escape_string (mysqli $ mysql , string $ string ): string {}
767-
768- /**
769- * @param string|int $value
770- * @alias mysqli_options
771- */
772- function mysqli_set_opt (mysqli $ mysql , int $ option , $ value ): bool {}
0 commit comments