diff options
Diffstat (limited to '.phan/stubs')
-rw-r--r-- | .phan/stubs/WeakMap.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.phan/stubs/WeakMap.php b/.phan/stubs/WeakMap.php new file mode 100644 index 000000000000..309c50c72b5a --- /dev/null +++ b/.phan/stubs/WeakMap.php @@ -0,0 +1,24 @@ +<?php + +// Phan stub for PHP 8.0's WeakMap class + + final class WeakMap implements ArrayAccess, Countable, IteratorAggregate { + + public function count(): int { + } + + public function getIterator(): Iterator { + } + + public function offsetExists( object $object ): bool { + } + + public function offsetGet( object $object ): mixed { + } + + public function offsetSet( object $object, mixed $value ): void { + } + + public function offsetUnset( object $object ): void { + } + } |