summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.stub.php
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-09-16 21:19:36 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-09-16 21:19:36 +0200
commitc76910cd967f498065f50f17dcaad941792e8430 (patch)
treeadc49e15035601cf65dc2211f43cb4094eead12d /ext/zip/php_zip.stub.php
parent0286decdb4acdfedd6365ed46f06e43cfdbf3673 (diff)
downloadphp-git-c76910cd967f498065f50f17dcaad941792e8430.tar.gz
Display types in stubs more uniformly
In preparation for generating method signatures for the manual. This change gets rid of bogus false|null return types, a few unnecessary trailing backslashes, and settles on using ? when possible for nullable types.
Diffstat (limited to 'ext/zip/php_zip.stub.php')
-rw-r--r--ext/zip/php_zip.stub.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/zip/php_zip.stub.php b/ext/zip/php_zip.stub.php
index cde266261d..6b81a623b0 100644
--- a/ext/zip/php_zip.stub.php
+++ b/ext/zip/php_zip.stub.php
@@ -111,17 +111,17 @@ class ZipArchive
/** @return string|false */
public function getArchiveComment(int $flags = 0) {}
- /** @return null|false */
+ /** @return bool|null */
public function setCommentIndex(int $index, string $comment) {}
- /** @return null|false */
+ /** @return bool|null */
public function setCommentName(string $name, string $comment) {}
#ifdef HAVE_SET_MTIME
- /** @return null|false */
+ /** @return bool|null */
public function setMtimeIndex(int $index, int $timestamp, int $flags = 0) {}
- /** @return null|false */
+ /** @return bool|null */
public function setMtimeName(string $name, int $timestamp, int $flags = 0) {}
#endif