@@ -36,7 +36,7 @@ public function begin_transaction(int $flags = 0, ?string $name = null) {}
36
36
public function change_user (string $ username , string $ password , ?string $ database ) {}
37
37
38
38
/**
39
- * @return string|null
39
+ * @return string
40
40
* @alias mysqli_character_set_name
41
41
*/
42
42
public function character_set_name () {}
@@ -51,7 +51,7 @@ public function close() {}
51
51
* @return bool
52
52
* @alias mysqli_commit
53
53
*/
54
- public function commit (int $ flags = - 1 , ?string $ name = null ) {}
54
+ public function commit (int $ flags = 0 , ?string $ name = null ) {}
55
55
56
56
/**
57
57
* @return mysqli|null|false
@@ -101,7 +101,7 @@ public function get_connection_stats() {}
101
101
#endif
102
102
103
103
/**
104
- * @return string|null
104
+ * @return string
105
105
* @alias mysqli_get_server_info
106
106
*/
107
107
public function get_server_info () {}
@@ -152,7 +152,7 @@ public function ping() {}
152
152
* @return int|false
153
153
* @alias mysqli_poll
154
154
*/
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 ) {}
156
156
#endif
157
157
158
158
/**
@@ -342,7 +342,7 @@ public function fetch_field_direct(int $index) {}
342
342
343
343
#if defined(MYSQLI_USE_MYSQLND)
344
344
/**
345
- * @return array|false
345
+ * @return array
346
346
* @alias mysqli_fetch_all
347
347
*/
348
348
public function fetch_all (int $ mode = MYSQLI_NUM ) {}
@@ -392,7 +392,7 @@ class mysqli_stmt
392
392
public function __construct (mysqli $ mysql , ?string $ query = null ) {}
393
393
394
394
/**
395
- * @return int|false
395
+ * @return int
396
396
* @alias mysqli_stmt_attr_get
397
397
*/
398
398
public function attr_get (int $ attribute ) {}
@@ -529,11 +529,11 @@ function mysqli_begin_transaction(mysqli $mysql, int $flags = 0, ?string $name =
529
529
530
530
function mysqli_change_user (mysqli $ mysql , string $ username , string $ password , ?string $ database ): bool {}
531
531
532
- function mysqli_character_set_name (mysqli $ mysql ): ? string {}
532
+ function mysqli_character_set_name (mysqli $ mysql ): string {}
533
533
534
534
function mysqli_close (mysqli $ mysql ): bool {}
535
535
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 {}
537
537
538
538
function mysqli_connect (
539
539
?string $ hostname = null ,
@@ -556,7 +556,7 @@ function mysqli_debug(string $options): bool {}
556
556
557
557
function mysqli_errno (mysqli $ mysql ): int {}
558
558
559
- function mysqli_error (mysqli $ mysql ): ? string {}
559
+ function mysqli_error (mysqli $ mysql ): string {}
560
560
561
561
function mysqli_error_list (mysqli $ mysql ): array {}
562
562
@@ -574,16 +574,16 @@ function mysqli_fetch_field_direct(mysqli_result $result, int $index): object|fa
574
574
function mysqli_fetch_lengths (mysqli_result $ result ): array |false {}
575
575
576
576
#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 {}
578
578
#endif
579
579
580
580
function mysqli_fetch_array (mysqli_result $ result , int $ mode = MYSQLI_BOTH ): array |null |false {}
581
581
582
- function mysqli_fetch_assoc (mysqli_result $ result ): ? array {}
582
+ function mysqli_fetch_assoc (mysqli_result $ result ): array | null | false {}
583
583
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 {}
585
585
586
- function mysqli_fetch_row (mysqli_result $ result ): ? array {}
586
+ function mysqli_fetch_row (mysqli_result $ result ): array | null | false {}
587
587
588
588
function mysqli_field_count (mysqli $ mysql ): int {}
589
589
@@ -638,10 +638,16 @@ function mysqli_num_rows(mysqli_result $result): int|string {}
638
638
/** @param string|int $value */
639
639
function mysqli_options (mysqli $ mysql , int $ option , $ value ): bool {}
640
640
641
+ /**
642
+ * @param string|int $value
643
+ * @alias mysqli_options
644
+ */
645
+ function mysqli_set_opt (mysqli $ mysql , int $ option , $ value ): bool {}
646
+
641
647
function mysqli_ping (mysqli $ mysql ): bool {}
642
648
643
649
#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 {}
645
651
#endif
646
652
647
653
function mysqli_prepare (mysqli $ mysql , string $ query ): mysqli_stmt |false {}
@@ -663,6 +669,9 @@ function mysqli_real_connect(
663
669
664
670
function mysqli_real_escape_string (mysqli $ mysql , string $ string ): string {}
665
671
672
+ /** @alias mysqli_real_escape_string */
673
+ function mysqli_escape_string (mysqli $ mysql , string $ string ): string {}
674
+
666
675
function mysqli_real_query (mysqli $ mysql , string $ query ): bool {}
667
676
668
677
#if defined(MYSQLI_USE_MYSQLND)
@@ -695,7 +704,7 @@ function mysqli_stmt_data_seek(mysqli_stmt $statement, int $offset): void {}
695
704
696
705
function mysqli_stmt_errno (mysqli_stmt $ statement ): int {}
697
706
698
- function mysqli_stmt_error (mysqli_stmt $ statement ): ? string {}
707
+ function mysqli_stmt_error (mysqli_stmt $ statement ): string {}
699
708
700
709
function mysqli_stmt_error_list (mysqli_stmt $ statement ): array {}
701
710
@@ -735,9 +744,9 @@ function mysqli_stmt_send_long_data(mysqli_stmt $statement, int $param_num, stri
735
744
736
745
function mysqli_stmt_store_result (mysqli_stmt $ statement ): bool {}
737
746
738
- function mysqli_stmt_sqlstate (mysqli_stmt $ statement ): ? string {}
747
+ function mysqli_stmt_sqlstate (mysqli_stmt $ statement ): string {}
739
748
740
- function mysqli_sqlstate (mysqli $ mysql ): ? string {}
749
+ function mysqli_sqlstate (mysqli $ mysql ): string {}
741
750
742
751
function mysqli_ssl_set (
743
752
mysqli $ mysql ,
@@ -761,12 +770,3 @@ function mysqli_use_result(mysqli $mysql): mysqli_result|false {}
761
770
function mysqli_warning_count (mysqli $ mysql ): int {}
762
771
763
772
function 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