summaryrefslogtreecommitdiff
path: root/Zend/zend_weakrefs.stub.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_weakrefs.stub.php')
-rw-r--r--Zend/zend_weakrefs.stub.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/Zend/zend_weakrefs.stub.php b/Zend/zend_weakrefs.stub.php
index 52ae81c7b8..aada11bc79 100644
--- a/Zend/zend_weakrefs.stub.php
+++ b/Zend/zend_weakrefs.stub.php
@@ -7,3 +7,27 @@ final class WeakReference {
public function get(): ?object;
}
+
+final class WeakMap implements ArrayAccess, Countable, Traversable {
+ //public function __construct();
+
+ /**
+ * @param object $object
+ * @return mixed
+ */
+ public function offsetGet($object);
+
+ /**
+ * @param object $object
+ * @param mixed $value
+ */
+ public function offsetSet($object, $value): void;
+
+ /** @param object $object */
+ public function offsetExists($object): bool;
+
+ /** @param object $object */
+ public function offsetUnset($object): void;
+
+ public function count(): int;
+}