Skip to content

Commit ed6cf67

Browse files
committed
Fix some final classes in stubs
1 parent d1d3a4a commit ed6cf67

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ext/hash/hash.stub.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function mhash_count(): int {}
5050
function mhash(int $hash, string $data, string $key = UNKNOWN): string|false {}
5151
#endif
5252

53-
class HashContext {
53+
final class HashContext
54+
{
5455
private function __construct() {}
5556
}

ext/mysqli/mysqli.stub.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/** @generate-function-entries */
44

5-
class mysqli_driver
5+
final class mysqli_driver
66
{
77
}
88

@@ -510,15 +510,14 @@ public function get_result() {}
510510
#endif
511511
}
512512

513-
class mysqli_warning
513+
final class mysqli_warning
514514
{
515515
protected function __construct(object $mysqli_link) {}
516516

517-
/** @return bool */
518-
public function next() {}
517+
public function next(): bool {}
519518
}
520519

521-
class mysqli_sql_exception extends RuntimeException
520+
final class mysqli_sql_exception extends RuntimeException
522521
{
523522
}
524523

ext/mysqli/mysqli_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_warning___construct, 0, 0, 1)
683683
ZEND_ARG_TYPE_INFO(0, mysqli_link, IS_OBJECT, 0)
684684
ZEND_END_ARG_INFO()
685685

686-
#define arginfo_class_mysqli_warning_next arginfo_class_mysqli_character_set_name
686+
#define arginfo_class_mysqli_warning_next arginfo_mysqli_thread_safe
687687

688688

689689
ZEND_FUNCTION(mysqli_affected_rows);

0 commit comments

Comments
 (0)