diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-05-03 11:49:31 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-05-06 19:15:34 +0200 |
commit | daa5b26456820a2414ad2fe0c264df44b43d13ff (patch) | |
tree | 8ea15abcf3583669d4b293062c4b3d631bd8df42 /ext/zip/php_zip.stub.php | |
parent | 78dda268eb2887709bdcbb7697785e80e231d58f (diff) | |
download | php-git-daa5b26456820a2414ad2fe0c264df44b43d13ff.tar.gz |
Fix UNKNOWN default values in ext/zip
Diffstat (limited to 'ext/zip/php_zip.stub.php')
-rw-r--r-- | ext/zip/php_zip.stub.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/zip/php_zip.stub.php b/ext/zip/php_zip.stub.php index 101afcbe8e..e7aabe2c6c 100644 --- a/ext/zip/php_zip.stub.php +++ b/ext/zip/php_zip.stub.php @@ -64,16 +64,16 @@ class ZipArchive public function addFromString(string $name, string $content, int $flags = ZipArchive::FL_OVERWRITE) {} /** @return bool */ - public function addFile(string $filepath, string $entryname = UNKNOWN, int $start = 0, int $length = 0, int $flags = ZipArchive::FL_OVERWRITE) {} + public function addFile(string $filepath, string $entryname = "", int $start = 0, int $length = 0, int $flags = ZipArchive::FL_OVERWRITE) {} /** @return bool */ public function replaceFile(string $filepath, string $index, int $start = 0, int $length = 0, int $flags = 0) {} /** @return array|false */ - public function addGlob(string $pattern, int $flags = 0, $options = UNKNOWN) {} + public function addGlob(string $pattern, int $flags = 0, array $options = []) {} /** @return array|false */ - public function addPattern(string $pattern, string $path = UNKNOWN, $options = UNKNOWN) {} + public function addPattern(string $pattern, string $path = ".", array $options = []) {} /** @return bool */ public function renameIndex(int $index, string $new_name) {} @@ -138,7 +138,7 @@ class ZipArchive public function unchangeName(string $name) {} /** @return bool */ - public function extractTo(string $pathto, $files = UNKNOWN) {} + public function extractTo(string $pathto, $files = null) {} /** @return string|false */ public function getFromName(string $entryname, int $len = 0, int $flags = 0) {} @@ -171,10 +171,10 @@ class ZipArchive #ifdef HAVE_ENCRYPTION /** @return bool */ - public function setEncryptionName(string $name, int $method, string $password = UNKNOWN) {} + public function setEncryptionName(string $name, int $method, ?string $password = null) {} /** @return bool */ - public function setEncryptionIndex(int $index, int $method, string $password = UNKNOWN) {} + public function setEncryptionIndex(int $index, int $method, ?string $password = null) {} #endif #ifdef HAVE_PROGRESS_CALLBACK |