summaryrefslogtreecommitdiff
path: root/Zend/zend_weakrefs.stub.php
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-10-31 12:17:04 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-10-31 12:17:04 +0100
commit2f8b7668386a7c4ede409e6ab7d4d93ce9316def (patch)
treed71f2d48fc87c21e986944d494b37abfaa10a34d /Zend/zend_weakrefs.stub.php
parent1517bc4426d5da5a7c1b151ff1fbc5b2bdb2b9b9 (diff)
downloadphp-git-2f8b7668386a7c4ede409e6ab7d4d93ce9316def.tar.gz
Add stubs for WeakReference
Diffstat (limited to 'Zend/zend_weakrefs.stub.php')
-rw-r--r--Zend/zend_weakrefs.stub.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Zend/zend_weakrefs.stub.php b/Zend/zend_weakrefs.stub.php
new file mode 100644
index 0000000000..52ae81c7b8
--- /dev/null
+++ b/Zend/zend_weakrefs.stub.php
@@ -0,0 +1,9 @@
+<?php
+
+final class WeakReference {
+ public function __construct();
+
+ public static function create(): WeakReference;
+
+ public function get(): ?object;
+}