summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.stub.php
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip/php_zip.stub.php')
-rw-r--r--ext/zip/php_zip.stub.php22
1 files changed, 20 insertions, 2 deletions
diff --git a/ext/zip/php_zip.stub.php b/ext/zip/php_zip.stub.php
index 5ae4731ae2..2c23b03851 100644
--- a/ext/zip/php_zip.stub.php
+++ b/ext/zip/php_zip.stub.php
@@ -1,6 +1,6 @@
<?php
-/** @generate-function-entries */
+/** @generate-class-entries */
/**
* @return resource|int|false
@@ -64,8 +64,26 @@ function zip_entry_filesize($zip_entry): int|false {}
*/
function zip_entry_compressionmethod($zip_entry): string|false {}
-class ZipArchive
+class ZipArchive implements Countable
{
+ /** @var int|null */
+ public $lastId;
+
+ /** @var int|null */
+ public $status;
+
+ /** @var int|null */
+ public $statusSys;
+
+ /** @var int|null */
+ public $numFiles;
+
+ /** @var string|null */
+ public $filename;
+
+ /** @var string|null */
+ public $comment;
+
/** @return bool|int */
public function open(string $filename, int $flags = 0) {}