com php-src: Fix WeakReference::create() stub: Zend/zend_weak refs.stub.php Zend/zend_weakrefs_arginfo.h
| From: | Nikita Popov | Date: | Thu, 16 Jul 2020 18:46:45 +0000 |
| Subject: | com php-src: Fix WeakReference::create() stub: Zend/zend_weak refs.stub.php Zend/zend_weakrefs_arginfo.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112193@lists.php.net to get a copy of this message | ||
Commit: 6d96f0f9ce3455edfea5a3218f8c21d7e9cc7ca7
Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 16 Jul 2020 20:46:45 +0200
Parents: 925909dc4643bb8122249b244d57131c0718cfc4
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6d96f0f9ce3455edfea5a3218f8c21d7e9cc7ca7
Log:
Fix WeakReference::create() stub
Changed paths:
M Zend/zend_weakrefs.stub.php
M Zend/zend_weakrefs_arginfo.h
Diff:
diff --git a/Zend/zend_weakrefs.stub.php b/Zend/zend_weakrefs.stub.php
index 8cf0df5cf6..4074ac0122 100644
--- a/Zend/zend_weakrefs.stub.php
+++ b/Zend/zend_weakrefs.stub.php
@@ -6,7 +6,7 @@ final class WeakReference
{
public function __construct() {}
- public static function create(): WeakReference {}
+ public static function create(object $object): WeakReference {}
public function get(): ?object {}
}
diff --git a/Zend/zend_weakrefs_arginfo.h b/Zend/zend_weakrefs_arginfo.h
index 581c4f479b..43d206a897 100644
--- a/Zend/zend_weakrefs_arginfo.h
+++ b/Zend/zend_weakrefs_arginfo.h
@@ -1,10 +1,11 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 408450a31ebee65311c075810dd36004e49135c3 */
+ * Stub hash: 8a90ffe614346c65d312bc5061fd304056b5640a */
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_WeakReference___construct, 0, 0, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_WeakReference_create, 0, 0, WeakReference, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_WeakReference_create, 0, 1, WeakReference, 0)
+ ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_WeakReference_get, 0, 0, IS_OBJECT, 1)