@@ -25,7 +25,7 @@ public function begin_transaction(int $flags = -1, string $name = UNKNOWN);
25
25
/** @return bool */
26
26
public function change_user (string $ user , string $ password , ?string $ database );
27
27
28
- /** @return string */
28
+ /** @return string|null */
29
29
public function character_set_name ();
30
30
31
31
/** @return bool */
@@ -53,13 +53,13 @@ public function debug(string $debug_options);
53
53
/** @return object|null */
54
54
public function get_charset ();
55
55
56
- /** @return string */
56
+ /** @return string|null */
57
57
public function get_client_info ();
58
58
59
59
/** @return array */
60
60
public function get_connection_stats ();
61
61
62
- /** @return string */
62
+ /** @return string|null */
63
63
public function get_server_info ();
64
64
65
65
/** @return mysqli_warning|false */
@@ -68,8 +68,8 @@ public function get_warnings();
68
68
/** @return mysqli|false */
69
69
public function init ();
70
70
71
- /** @return bool|null */
72
- public function kill (int $ connection_id ): bool | null ;
71
+ /** @return bool */
72
+ public function kill (int $ connection_id );
73
73
74
74
/** @return bool */
75
75
public function multi_query (string $ query );
@@ -86,13 +86,13 @@ public function ping();
86
86
/** @return int|false */
87
87
public static function poll (?array &$ read , ?array &$ write , array &$ error , int $ sec , int $ usec = 0 );
88
88
89
- /** @return mysqli_stmt|null| false */
89
+ /** @return mysqli_stmt|false */
90
90
public function prepare (string $ query );
91
91
92
- /** @return mysqli_result|null| bool */
92
+ /** @return mysqli_result|bool */
93
93
public function query (string $ query , int $ resultmode = MYSQLI_STORE_RESULT );
94
94
95
- /** @return mysqli|null| bool */
95
+ /** @return mysqli|bool */
96
96
public function real_connect (
97
97
?string $ host = null ,
98
98
?string $ user = null ,
@@ -103,48 +103,48 @@ public function real_connect(
103
103
int $ flags = 0
104
104
);
105
105
106
- /** @return string|null|bool */
106
+ /** @return string */
107
107
public function real_escape_string (string $ string_to_escape );
108
108
109
109
/** @return mysqli_result|bool */
110
110
public function reap_async_query ();
111
111
112
- /** @return string|null */
112
+ /** @return string */
113
113
public function escape_string (string $ string_to_escape );
114
114
115
- /** @return bool|null */
115
+ /** @return bool */
116
116
public function real_query (string $ query );
117
117
118
- /** @return bool|null */
118
+ /** @return bool */
119
119
public function release_savepoint (string $ name );
120
120
121
121
/** @return bool */
122
122
public function rollback (?int $ flags = 0 , ?string $ name = '' );
123
123
124
- /** @return bool|null */
124
+ /** @return bool */
125
125
public function savepoint (string $ name );
126
126
127
- /** @return bool|null */
127
+ /** @return bool */
128
128
public function select_db (string $ database );
129
129
130
- /** @return bool|null */
130
+ /** @return bool */
131
131
public function set_charset (string $ charset );
132
132
133
133
/**
134
134
* @param mixed $value
135
135
*
136
- * @return bool|null
136
+ * @return bool
137
137
*/
138
138
public function options (int $ option , $ value );
139
139
140
140
/**
141
141
* @param mixed $value
142
142
*
143
- * @return bool|null
143
+ * @return bool
144
144
*/
145
145
public function set_opt (int $ option , $ value );
146
146
147
- /** @return bool|null */
147
+ /** @return bool */
148
148
public function ssl_set (
149
149
string $ key ,
150
150
string $ cert ,
@@ -168,7 +168,7 @@ public function thread_safe();
168
168
/** @return mysqli_result|false */
169
169
public function use_result ();
170
170
171
- /** @return bool|null */
171
+ /** @return bool */
172
172
public function refresh (int $ options );
173
173
}
174
174
@@ -303,7 +303,7 @@ function mysqli_begin_transaction(mysqli $mysql_link, int $flags = -1, string $n
303
303
304
304
function mysqli_change_user (mysqli $ mysql_link , string $ user , string $ password , ?string $ database ): bool {}
305
305
306
- function mysqli_character_set_name (mysqli $ mysql_link ): string {}
306
+ function mysqli_character_set_name (mysqli $ mysql_link ): string | null {}
307
307
308
308
function mysqli_close (mysqli $ mysql_link ): bool {}
309
309
@@ -375,7 +375,7 @@ function mysqli_get_client_stats(): array {}
375
375
376
376
function mysqli_get_charset (mysqli $ mysqli_link ): object |null {}
377
377
378
- function mysqli_get_client_info (?mysqli $ mysqli_link = null ): string {}
378
+ function mysqli_get_client_info (?mysqli $ mysqli_link = null ): string | null {}
379
379
380
380
function mysqli_get_client_version (): int {}
381
381
@@ -385,46 +385,42 @@ function mysqli_get_host_info(mysqli $mysqli_link): string|bool {}
385
385
386
386
function mysqli_get_proto_info (mysqli $ mysqli_link ): int |bool {}
387
387
388
- function mysqli_get_server_info (mysqli $ mysqli_link ): string {}
388
+ function mysqli_get_server_info (mysqli $ mysqli_link ): string | null {}
389
389
390
390
function mysqli_get_server_version (mysqli $ mysqli_link ): int |bool {}
391
391
392
- function mysqli_get_warnings (mysqli $ mysqli_link ): mysqli_warning |null | false {}
392
+ function mysqli_get_warnings (mysqli $ mysqli_link ): mysqli_warning |false {}
393
393
394
394
function mysqli_init (): mysqli |false {}
395
395
396
396
function mysqli_info (mysqli $ mysqli_link ): string |bool |null {}
397
397
398
398
function mysqli_insert_id (mysqli $ mysqli_link ): int |bool |string {}
399
399
400
- function mysqli_kill (mysqli $ mysqli_link , int $ connection_id ): bool | null {}
400
+ function mysqli_kill (mysqli $ mysqli_link , int $ connection_id ): bool {}
401
401
402
- function mysqli_more_results (mysqli $ mysqli_link ): bool | null {}
402
+ function mysqli_more_results (mysqli $ mysqli_link ): bool {}
403
403
404
- function mysqli_multi_query (mysqli $ mysqli_link , string $ query ): bool | null {}
404
+ function mysqli_multi_query (mysqli $ mysqli_link , string $ query ): bool {}
405
405
406
- function mysqli_next_result (mysqli $ mysqli_link ): bool | null {}
406
+ function mysqli_next_result (mysqli $ mysqli_link ): bool {}
407
407
408
408
function mysqli_num_fields (mysqli_result $ mysql_result ): int |bool {}
409
409
410
410
function mysqli_num_rows (mysqli_result $ mysqli_result ): int |string |bool {}
411
411
412
412
/** @param mixed $value */
413
- function mysqli_options (mysqli $ mysqli_link , int $ option , $ value ): bool | null {}
413
+ function mysqli_options (mysqli $ mysqli_link , int $ option , $ value ): bool {}
414
414
415
- function mysqli_ping (mysqli $ mysqli_link ): bool | null {}
415
+ function mysqli_ping (mysqli $ mysqli_link ): bool {}
416
416
417
417
function mysqli_poll (?array &$ read , ?array &$ write , array &$ error , int $ sec , int $ usec = 0 ): int |false {}
418
418
419
- function mysqli_prepare (mysqli $ mysqli_link , string $ query ): mysqli_stmt |null | false {}
419
+ function mysqli_prepare (mysqli $ mysqli_link , string $ query ): mysqli_stmt |false {}
420
420
421
421
function mysqli_report (int $ flags ): bool {}
422
422
423
- function mysqli_query (
424
- mysqli $ mysqli_link ,
425
- string $ query ,
426
- int $ resultmode = MYSQLI_STORE_RESULT
427
- ): mysqli_result |null |bool {}
423
+ function mysqli_query (mysqli $ mysqli_link , string $ query , int $ resultmode = MYSQLI_STORE_RESULT ): mysqli_result |bool {}
428
424
429
425
function mysqli_real_connect (
430
426
mysqli $ mysqli_link ,
@@ -434,23 +430,23 @@ function mysqli_real_connect(
434
430
?string $ database = null ,
435
431
?int $ port = null ,
436
432
int $ flags = 0
437
- ): mysqli |null | bool {}
433
+ ): mysqli |bool {}
438
434
439
- function mysqli_real_escape_string (mysqli $ mysqli_link , string $ string_to_escape ): string | null | bool {}
435
+ function mysqli_real_escape_string (mysqli $ mysqli_link , string $ string_to_escape ): string {}
440
436
441
- function mysqli_real_query (mysqli $ mysqli_link , string $ query ): bool | null {}
437
+ function mysqli_real_query (mysqli $ mysqli_link , string $ query ): bool {}
442
438
443
- function mysqli_reap_async_query (mysqli $ mysqli_link ): mysqli_result |null | bool {}
439
+ function mysqli_reap_async_query (mysqli $ mysqli_link ): mysqli_result |bool {}
444
440
445
- function mysqli_release_savepoint (mysqli $ mysqli_link , string $ name ): bool | null {}
441
+ function mysqli_release_savepoint (mysqli $ mysqli_link , string $ name ): bool {}
446
442
447
- function mysqli_rollback (mysqli $ mysqli_link , ?int $ flags = 0 , ?string $ name = '' ): bool | null {}
443
+ function mysqli_rollback (mysqli $ mysqli_link , ?int $ flags = 0 , ?string $ name = '' ): bool {}
448
444
449
- function mysqli_savepoint (mysqli $ mysqli_link , string $ name ): bool | null {}
445
+ function mysqli_savepoint (mysqli $ mysqli_link , string $ name ): bool {}
450
446
451
- function mysqli_select_db (mysqli $ mysqli_link , string $ dbname ): bool | null {}
447
+ function mysqli_select_db (mysqli $ mysqli_link , string $ dbname ): bool {}
452
448
453
- function mysqli_set_charset (mysqli $ mysqli_link , string $ charset ): bool | null {}
449
+ function mysqli_set_charset (mysqli $ mysqli_link , string $ charset ): bool {}
454
450
455
451
function mysqli_stmt_affected_rows (mysqli_stmt $ mysql_stmt ): int |bool {}
456
452
@@ -486,7 +482,7 @@ function mysqli_stmt_get_result(mysqli_stmt $mysql_stmt): mysqli_result|false {}
486
482
487
483
function mysqli_stmt_get_warnings (mysqli_stmt $ mysql_stmt ): mysqli_warning |null |false {}
488
484
489
- function mysqli_stmt_init (mysqli $ mysql_link ): mysqli_stmt |null | false {}
485
+ function mysqli_stmt_init (mysqli $ mysql_link ): mysqli_stmt |false {}
490
486
491
487
function mysqli_stmt_insert_id (mysqli_stmt $ mysql_stmt ): int |bool {}
492
488
@@ -519,23 +515,23 @@ function mysqli_ssl_set(
519
515
string $ certificate_authority ,
520
516
string $ certificate_authority_path ,
521
517
string $ cipher
522
- ): bool | null {}
518
+ ): bool {}
523
519
524
- function mysqli_stat (mysqli $ mysql_link ): string |null | false {}
520
+ function mysqli_stat (mysqli $ mysql_link ): string |false {}
525
521
526
522
function mysqli_store_result (mysqli $ mysql_link , int $ flags = 0 ): mysqli_result |false {}
527
523
528
524
function mysqli_thread_id (mysqli $ mysql_link ): int |bool {}
529
525
530
526
function mysqli_thread_safe (): bool {}
531
527
532
- function mysqli_use_result (mysqli $ mysql_link ): mysqli_result |null | false {}
528
+ function mysqli_use_result (mysqli $ mysql_link ): mysqli_result |false {}
533
529
534
530
function mysqli_warning_count (mysqli $ mysql_link ): int |bool {}
535
531
536
- function mysqli_refresh (mysqli $ mysqli_link , int $ options ): bool | null {}
532
+ function mysqli_refresh (mysqli $ mysqli_link , int $ options ): bool {}
537
533
538
- function mysqli_escape_string (mysqli $ mysqli_link , string $ string_to_escape ): string | null {}
534
+ function mysqli_escape_string (mysqli $ mysqli_link , string $ string_to_escape ): string {}
539
535
540
536
/** @param mixed $value */
541
- function mysqli_set_opt (mysqli $ mysqli_link , int $ option , $ value ): bool | null {}
537
+ function mysqli_set_opt (mysqli $ mysqli_link , int $ option , $ value ): bool {}
0 commit comments