diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-09-16 21:19:36 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-09-16 21:19:36 +0200 |
commit | c76910cd967f498065f50f17dcaad941792e8430 (patch) | |
tree | adc49e15035601cf65dc2211f43cb4094eead12d /ext/zip/php_zip.stub.php | |
parent | 0286decdb4acdfedd6365ed46f06e43cfdbf3673 (diff) | |
download | php-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.php | 8 |
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 |