@@ -10,7 +10,7 @@ class mysqli
10
10
{
11
11
public function __construct (
12
12
?string $ host = null ,
13
- ?string $ user = null ,
13
+ ?string $ username = null ,
14
14
?string $ password = null ,
15
15
?string $ database = null ,
16
16
?int $ port = null ,
@@ -21,7 +21,7 @@ public function __construct(
21
21
* @return bool
22
22
* @alias mysqli_autocommit
23
23
*/
24
- public function autocommit (bool $ autocommit ) {}
24
+ public function autocommit (bool $ enable ) {}
25
25
26
26
/**
27
27
* @return bool
@@ -33,7 +33,7 @@ public function begin_transaction(int $flags = 0, ?string $name = null) {}
33
33
* @return bool
34
34
* @alias mysqli_change_user
35
35
*/
36
- public function change_user (string $ user , string $ password , ?string $ database ) {}
36
+ public function change_user (string $ username , string $ password , ?string $ database ) {}
37
37
38
38
/**
39
39
* @return string|null
@@ -59,7 +59,7 @@ public function commit(int $flags = -1, ?string $name = null) {}
59
59
*/
60
60
public function connect (
61
61
?string $ host = null ,
62
- ?string $ user = null ,
62
+ ?string $ username = null ,
63
63
?string $ password = null ,
64
64
?string $ database = null ,
65
65
?int $ port = null ,
@@ -172,7 +172,7 @@ public function query(string $query, int $result_mode = MYSQLI_STORE_RESULT) {}
172
172
*/
173
173
public function real_connect (
174
174
?string $ host = null ,
175
- ?string $ user = null ,
175
+ ?string $ username = null ,
176
176
?string $ password = null ,
177
177
?string $ database = null ,
178
178
?int $ port = null ,
@@ -184,7 +184,7 @@ public function real_connect(
184
184
* @return string
185
185
* @alias mysqli_real_escape_string
186
186
*/
187
- public function real_escape_string (string $ string_to_escape ) {}
187
+ public function real_escape_string (string $ string ) {}
188
188
189
189
#if defined(MYSQLI_USE_MYSQLND)
190
190
/**
@@ -198,7 +198,7 @@ public function reap_async_query() {}
198
198
* @return string
199
199
* @alias mysqli_real_escape_string
200
200
*/
201
- public function escape_string (string $ string_to_escape ) {}
201
+ public function escape_string (string $ string ) {}
202
202
203
203
/**
204
204
* @return bool
@@ -256,10 +256,10 @@ public function set_opt(int $option, $value) {}
256
256
*/
257
257
public function ssl_set (
258
258
string $ key ,
259
- string $ cert ,
259
+ string $ certificate ,
260
260
string $ certificate_authority ,
261
261
string $ certificate_authority_path ,
262
- string $ cipher
262
+ string $ cipher_algorithms
263
263
) {}
264
264
265
265
/**
@@ -337,7 +337,7 @@ public function fetch_fields() {}
337
337
* @return object|false
338
338
* @alias mysqli_fetch_field_direct
339
339
*/
340
- public function fetch_field_direct (int $ field_num ) {}
340
+ public function fetch_field_direct (int $ index ) {}
341
341
342
342
#if defined(MYSQLI_USE_MYSQLND)
343
343
/**
@@ -363,7 +363,7 @@ public function fetch_assoc() {}
363
363
* @return object|null
364
364
* @alias mysqli_fetch_object
365
365
*/
366
- public function fetch_object (string $ class_name = "stdClass " , array $ params = []) {}
366
+ public function fetch_object (string $ class = "stdClass " , array $ params = []) {}
367
367
368
368
/**
369
369
* @return array|null
@@ -375,7 +375,7 @@ public function fetch_row() {}
375
375
* @return bool
376
376
* @alias mysqli_field_seek
377
377
*/
378
- public function field_seek (int $ field_num ) {}
378
+ public function field_seek (int $ index ) {}
379
379
380
380
/**
381
381
* @return void
@@ -400,7 +400,7 @@ public function attr_get(int $attr) {}
400
400
* @return bool
401
401
* @alias mysqli_stmt_attr_set
402
402
*/
403
- public function attr_set (int $ attr , int $ mode ) {}
403
+ public function attr_set (int $ attribute , int $ value ) {}
404
404
405
405
/**
406
406
* @return bool
@@ -474,7 +474,7 @@ public function num_rows() {}
474
474
* @return bool
475
475
* @alias mysqli_stmt_send_long_data
476
476
*/
477
- public function send_long_data (int $ param_num , string $ data ) {}
477
+ public function send_long_data (int $ index , string $ data ) {}
478
478
479
479
/**
480
480
* @return void
@@ -522,11 +522,11 @@ final class mysqli_sql_exception extends RuntimeException
522
522
523
523
function mysqli_affected_rows (mysqli $ mysql_link ): int |string {}
524
524
525
- function mysqli_autocommit (mysqli $ mysql_link , bool $ autocommit ): bool {}
525
+ function mysqli_autocommit (mysqli $ mysql_link , bool $ enable ): bool {}
526
526
527
527
function mysqli_begin_transaction (mysqli $ mysql_link , int $ flags = 0 , ?string $ name = null ): bool {}
528
528
529
- function mysqli_change_user (mysqli $ mysql_link , string $ user , string $ password , ?string $ database ): bool {}
529
+ function mysqli_change_user (mysqli $ mysql_link , string $ username , string $ password , ?string $ database ): bool {}
530
530
531
531
function mysqli_character_set_name (mysqli $ mysql_link ): ?string {}
532
532
@@ -536,7 +536,7 @@ function mysqli_commit(mysqli $mysql_link, int $flags = -1, ?string $name = null
536
536
537
537
function mysqli_connect (
538
538
?string $ host = null ,
539
- ?string $ user = null ,
539
+ ?string $ username = null ,
540
540
?string $ password = null ,
541
541
?string $ database = null ,
542
542
?int $ port = null ,
@@ -547,7 +547,7 @@ function mysqli_connect_errno(): int {}
547
547
548
548
function mysqli_connect_error (): ?string {}
549
549
550
- function mysqli_data_seek (mysqli_result $ mysql_result , int $ offset ): bool {}
550
+ function mysqli_data_seek (mysqli_result $ result , int $ offset ): bool {}
551
551
552
552
function mysqli_dump_debug_info (mysqli $ mysql_link ): bool {}
553
553
@@ -564,29 +564,29 @@ function mysqli_stmt_execute(mysqli_stmt $mysql_stmt): bool {}
564
564
/** @alias mysqli_stmt_execute */
565
565
function mysqli_execute (mysqli_stmt $ mysql_stmt ): bool {}
566
566
567
- function mysqli_fetch_field (mysqli_result $ mysql_result ): object |false {}
567
+ function mysqli_fetch_field (mysqli_result $ result ): object |false {}
568
568
569
- function mysqli_fetch_fields (mysqli_result $ mysql_result ): array {}
569
+ function mysqli_fetch_fields (mysqli_result $ result ): array {}
570
570
571
- function mysqli_fetch_field_direct (mysqli_result $ mysql_result , int $ offset ): object |false {}
571
+ function mysqli_fetch_field_direct (mysqli_result $ result , int $ offset ): object |false {}
572
572
573
- function mysqli_fetch_lengths (mysqli_result $ mysql_result ): array |false {}
573
+ function mysqli_fetch_lengths (mysqli_result $ result ): array |false {}
574
574
575
575
#if defined(MYSQLI_USE_MYSQLND)
576
- function mysqli_fetch_all (mysqli_result $ mysql_result , int $ mode = MYSQLI_NUM ): array |false {}
576
+ function mysqli_fetch_all (mysqli_result $ result , int $ mode = MYSQLI_NUM ): array |false {}
577
577
#endif
578
578
579
- function mysqli_fetch_array (mysqli_result $ mysql_result , int $ fetchtype = MYSQLI_BOTH ): array |null |false {}
579
+ function mysqli_fetch_array (mysqli_result $ result , int $ fetchtype = MYSQLI_BOTH ): array |null |false {}
580
580
581
- function mysqli_fetch_assoc (mysqli_result $ mysql_result ): ?array {}
581
+ function mysqli_fetch_assoc (mysqli_result $ result ): ?array {}
582
582
583
- function mysqli_fetch_object (mysqli_result $ mysqli_result , string $ class_name = "stdClass " , array $ params = []): ?object {}
583
+ function mysqli_fetch_object (mysqli_result $ mysqli_result , string $ class = "stdClass " , array $ params = []): ?object {}
584
584
585
585
function mysqli_fetch_row (mysqli_result $ mysqli_result ): ?array {}
586
586
587
587
function mysqli_field_count (mysqli $ mysqli_link ): int {}
588
588
589
- function mysqli_field_seek (mysqli_result $ mysqli_result , int $ field_num ): bool {}
589
+ function mysqli_field_seek (mysqli_result $ mysqli_result , int $ index ): bool {}
590
590
591
591
function mysqli_field_tell (mysqli_result $ mysqli_result ): int {}
592
592
@@ -630,7 +630,7 @@ function mysqli_multi_query(mysqli $mysqli_link, string $query): bool {}
630
630
631
631
function mysqli_next_result (mysqli $ mysqli_link ): bool {}
632
632
633
- function mysqli_num_fields (mysqli_result $ mysql_result ): int {}
633
+ function mysqli_num_fields (mysqli_result $ result ): int {}
634
634
635
635
function mysqli_num_rows (mysqli_result $ mysqli_result ): int |string {}
636
636
@@ -652,15 +652,15 @@ function mysqli_query(mysqli $mysqli_link, string $query, int $result_mode = MYS
652
652
function mysqli_real_connect (
653
653
mysqli $ mysqli_link ,
654
654
?string $ host = null ,
655
- ?string $ user = null ,
655
+ ?string $ username = null ,
656
656
?string $ password = null ,
657
657
?string $ database = null ,
658
658
?int $ port = null ,
659
659
?string $ socket = null ,
660
660
int $ flags = 0
661
661
): bool {}
662
662
663
- function mysqli_real_escape_string (mysqli $ mysqli_link , string $ string_to_escape ): string {}
663
+ function mysqli_real_escape_string (mysqli $ mysqli_link , string $ string ): string {}
664
664
665
665
function mysqli_real_query (mysqli $ mysqli_link , string $ query ): bool {}
666
666
@@ -674,15 +674,15 @@ function mysqli_rollback(mysqli $mysqli_link, int $flags = 0, ?string $name = nu
674
674
675
675
function mysqli_savepoint (mysqli $ mysqli_link , string $ name ): bool {}
676
676
677
- function mysqli_select_db (mysqli $ mysqli_link , string $ dbname ): bool {}
677
+ function mysqli_select_db (mysqli $ mysqli_link , string $ database ): bool {}
678
678
679
679
function mysqli_set_charset (mysqli $ mysqli_link , string $ charset ): bool {}
680
680
681
681
function mysqli_stmt_affected_rows (mysqli_stmt $ mysql_stmt ): int |string {}
682
682
683
- function mysqli_stmt_attr_get (mysqli_stmt $ mysql_stmt , int $ attr ): int {}
683
+ function mysqli_stmt_attr_get (mysqli_stmt $ mysql_stmt , int $ attribute ): int {}
684
684
685
- function mysqli_stmt_attr_set (mysqli_stmt $ mysql_stmt , int $ attr , int $ mode ): bool {}
685
+ function mysqli_stmt_attr_set (mysqli_stmt $ mysql_stmt , int $ attribute , int $ value ): bool {}
686
686
687
687
function mysqli_stmt_bind_param (mysqli_stmt $ mysql_stmt , string $ types , mixed &...$ vars ): bool {}
688
688
@@ -730,7 +730,7 @@ function mysqli_stmt_reset(mysqli_stmt $mysql_stmt): bool {}
730
730
731
731
function mysqli_stmt_result_metadata (mysqli_stmt $ mysql_stmt ): mysqli_result |false {}
732
732
733
- function mysqli_stmt_send_long_data (mysqli_stmt $ mysql_stmt , int $ param_num , string $ data ): bool {}
733
+ function mysqli_stmt_send_long_data (mysqli_stmt $ mysql_stmt , int $ index , string $ data ): bool {}
734
734
735
735
function mysqli_stmt_store_result (mysqli_stmt $ mysql_stmt ): bool {}
736
736
@@ -741,10 +741,10 @@ function mysqli_sqlstate(mysqli $mysqli_link): ?string {}
741
741
function mysqli_ssl_set (
742
742
mysqli $ mysql_link ,
743
743
string $ key ,
744
- string $ cert ,
744
+ string $ certificate ,
745
745
string $ certificate_authority ,
746
746
string $ certificate_authority_path ,
747
- string $ cipher
747
+ string $ cipher_algorithms
748
748
): bool {}
749
749
750
750
function mysqli_stat (mysqli $ mysql_link ): string |false {}
@@ -762,7 +762,7 @@ function mysqli_warning_count(mysqli $mysql_link): int {}
762
762
function mysqli_refresh (mysqli $ mysqli_link , int $ options ): bool {}
763
763
764
764
/** @alias mysqli_real_escape_string */
765
- function mysqli_escape_string (mysqli $ mysqli_link , string $ string_to_escape ): string {}
765
+ function mysqli_escape_string (mysqli $ mysqli_link , string $ string ): string {}
766
766
767
767
/**
768
768
* @param string|int $value
0 commit comments