@@ -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
/**
@@ -341,7 +341,7 @@ public function fetch_fields() {}
341
341
public function fetch_field_direct (int $ index ) {}
342
342
343
343
/**
344
- * @return array|false
344
+ * @return array
345
345
* @alias mysqli_fetch_all
346
346
*/
347
347
public function fetch_all (int $ mode = MYSQLI_NUM ) {}
@@ -390,7 +390,7 @@ class mysqli_stmt
390
390
public function __construct (mysqli $ mysql , ?string $ query = null ) {}
391
391
392
392
/**
393
- * @return int|false
393
+ * @return int
394
394
* @alias mysqli_stmt_attr_get
395
395
*/
396
396
public function attr_get (int $ attribute ) {}
@@ -527,11 +527,11 @@ function mysqli_begin_transaction(mysqli $mysql, int $flags = 0, ?string $name =
527
527
528
528
function mysqli_change_user (mysqli $ mysql , string $ username , string $ password , ?string $ database ): bool {}
529
529
530
- function mysqli_character_set_name (mysqli $ mysql ): ? string {}
530
+ function mysqli_character_set_name (mysqli $ mysql ): string {}
531
531
532
532
function mysqli_close (mysqli $ mysql ): bool {}
533
533
534
- function mysqli_commit (mysqli $ mysql , int $ flags = - 1 , ?string $ name = null ): bool {}
534
+ function mysqli_commit (mysqli $ mysql , int $ flags = 0 , ?string $ name = null ): bool {}
535
535
536
536
function mysqli_connect (
537
537
?string $ hostname = null ,
@@ -554,7 +554,7 @@ function mysqli_debug(string $options): bool {}
554
554
555
555
function mysqli_errno (mysqli $ mysql ): int {}
556
556
557
- function mysqli_error (mysqli $ mysql ): ? string {}
557
+ function mysqli_error (mysqli $ mysql ): string {}
558
558
559
559
function mysqli_error_list (mysqli $ mysql ): array {}
560
560
@@ -571,15 +571,15 @@ function mysqli_fetch_field_direct(mysqli_result $result, int $index): object|fa
571
571
572
572
function mysqli_fetch_lengths (mysqli_result $ result ): array |false {}
573
573
574
- function mysqli_fetch_all (mysqli_result $ result , int $ mode = MYSQLI_NUM ): array | false {}
574
+ function mysqli_fetch_all (mysqli_result $ result , int $ mode = MYSQLI_NUM ): array {}
575
575
576
576
function mysqli_fetch_array (mysqli_result $ result , int $ mode = MYSQLI_BOTH ): array |null |false {}
577
577
578
- function mysqli_fetch_assoc (mysqli_result $ result ): ? array {}
578
+ function mysqli_fetch_assoc (mysqli_result $ result ): array | null | false {}
579
579
580
- function mysqli_fetch_object (mysqli_result $ result , string $ class = "stdClass " , array $ constructor_args = []): ? object {}
580
+ function mysqli_fetch_object (mysqli_result $ result , string $ class = "stdClass " , array $ constructor_args = []): object | null | false {}
581
581
582
- function mysqli_fetch_row (mysqli_result $ result ): ? array {}
582
+ function mysqli_fetch_row (mysqli_result $ result ): array | null | false {}
583
583
584
584
function mysqli_field_count (mysqli $ mysql ): int {}
585
585
@@ -634,10 +634,16 @@ function mysqli_num_rows(mysqli_result $result): int|string {}
634
634
/** @param string|int $value */
635
635
function mysqli_options (mysqli $ mysql , int $ option , $ value ): bool {}
636
636
637
+ /**
638
+ * @param string|int $value
639
+ * @alias mysqli_options
640
+ */
641
+ function mysqli_set_opt (mysqli $ mysql , int $ option , $ value ): bool {}
642
+
637
643
function mysqli_ping (mysqli $ mysql ): bool {}
638
644
639
645
#if defined(MYSQLI_USE_MYSQLND)
640
- function mysqli_poll (?array &$ read , ?array &$ write , array &$ error , int $ seconds , int $ microseconds = 0 ): int |false {}
646
+ function mysqli_poll (?array &$ read , ?array &$ error , array &$ reject , int $ seconds , int $ microseconds = 0 ): int |false {}
641
647
#endif
642
648
643
649
function mysqli_prepare (mysqli $ mysql , string $ query ): mysqli_stmt |false {}
@@ -659,6 +665,9 @@ function mysqli_real_connect(
659
665
660
666
function mysqli_real_escape_string (mysqli $ mysql , string $ string ): string {}
661
667
668
+ /** @alias mysqli_real_escape_string */
669
+ function mysqli_escape_string (mysqli $ mysql , string $ string ): string {}
670
+
662
671
function mysqli_real_query (mysqli $ mysql , string $ query ): bool {}
663
672
664
673
#if defined(MYSQLI_USE_MYSQLND)
@@ -691,7 +700,7 @@ function mysqli_stmt_data_seek(mysqli_stmt $statement, int $offset): void {}
691
700
692
701
function mysqli_stmt_errno (mysqli_stmt $ statement ): int {}
693
702
694
- function mysqli_stmt_error (mysqli_stmt $ statement ): ? string {}
703
+ function mysqli_stmt_error (mysqli_stmt $ statement ): string {}
695
704
696
705
function mysqli_stmt_error_list (mysqli_stmt $ statement ): array {}
697
706
@@ -731,9 +740,9 @@ function mysqli_stmt_send_long_data(mysqli_stmt $statement, int $param_num, stri
731
740
732
741
function mysqli_stmt_store_result (mysqli_stmt $ statement ): bool {}
733
742
734
- function mysqli_stmt_sqlstate (mysqli_stmt $ statement ): ? string {}
743
+ function mysqli_stmt_sqlstate (mysqli_stmt $ statement ): string {}
735
744
736
- function mysqli_sqlstate (mysqli $ mysql ): ? string {}
745
+ function mysqli_sqlstate (mysqli $ mysql ): string {}
737
746
738
747
function mysqli_ssl_set (
739
748
mysqli $ mysql ,
@@ -757,12 +766,3 @@ function mysqli_use_result(mysqli $mysql): mysqli_result|false {}
757
766
function mysqli_warning_count (mysqli $ mysql ): int {}
758
767
759
768
function mysqli_refresh (mysqli $ mysql , int $ flags ): bool {}
760
-
761
- /** @alias mysqli_real_escape_string */
762
- function mysqli_escape_string (mysqli $ mysql , string $ string ): string {}
763
-
764
- /**
765
- * @param string|int $value
766
- * @alias mysqli_options
767
- */
768
- function mysqli_set_opt (mysqli $ mysql , int $ option , $ value ): bool {}
0 commit comments