]> granicus.if.org Git - php/commitdiff
Fix some final classes in stubs
authorMáté Kocsis <kocsismate@woohoolabs.com>
Tue, 19 May 2020 12:54:37 +0000 (14:54 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Tue, 19 May 2020 12:54:37 +0000 (14:54 +0200)
ext/hash/hash.stub.php
ext/mysqli/mysqli.stub.php
ext/mysqli/mysqli_arginfo.h

index a634112d00fd8b42463ecc955461ea4b9f546fb7..32465415fcbff7614443d426a0293b234fd29461 100644 (file)
@@ -50,6 +50,7 @@ function mhash_count(): int {}
 function mhash(int $hash, string $data, string $key = UNKNOWN): string|false {}
 #endif
 
-class HashContext {
+final class HashContext
+{
     private function __construct() {}
 }
index 0bf9fb2bf19da45a819b92272a0c9c9f1d34eb79..fe581a37236650fd09d3968f1ce9c83490116f27 100644 (file)
@@ -2,7 +2,7 @@
 
 /** @generate-function-entries */
 
-class mysqli_driver
+final class mysqli_driver
 {
 }
 
@@ -510,15 +510,14 @@ class mysqli_stmt
 #endif
 }
 
-class mysqli_warning
+final class mysqli_warning
 {
     protected function __construct(object $mysqli_link) {}
 
-    /** @return bool */
-    public function next() {}
+    public function next(): bool {}
 }
 
-class mysqli_sql_exception extends RuntimeException
+final class mysqli_sql_exception extends RuntimeException
 {
 }
 
index 80c5fcd7cb150f74815e5eba0d2841c38ff48185..f42ce8611f0b6586be9046ce184b1f04d75bed5d 100644 (file)
@@ -683,7 +683,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_warning___construct, 0, 0, 1)
        ZEND_ARG_TYPE_INFO(0, mysqli_link, IS_OBJECT, 0)
 ZEND_END_ARG_INFO()
 
-#define arginfo_class_mysqli_warning_next arginfo_class_mysqli_character_set_name
+#define arginfo_class_mysqli_warning_next arginfo_mysqli_thread_safe
 
 
 ZEND_FUNCTION(mysqli_affected_rows);