Skip to content

Commit dc9e1cc

Browse files
committed
Update stubs
1 parent aad35ba commit dc9e1cc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

stubs/ext/zip/ZipArchive.php

+12
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,28 @@ public function addFromString(string $name, string $content, int $flags = ZipArc
5959
* @tentative-return-type
6060
* @return bool
6161
*/
62+
#[\Until('8.3')]
6263
public function addFile(string $filepath, string $entryname = "", int $start = 0, int $length = 0, int $flags = ZipArchive::FL_OVERWRITE)
6364
{
6465
}
66+
/** @tentative-return-type */
67+
#[\Since('8.3')]
68+
public function addFile(string $filepath, string $entryname = "", int $start = 0, int $length = ZipArchive::LENGTH_TO_END, int $flags = ZipArchive::FL_OVERWRITE)
69+
{
70+
}
6571
/**
6672
* @tentative-return-type
6773
* @return bool
6874
*/
75+
#[\Until('8.3')]
6976
public function replaceFile(string $filepath, int $index, int $start = 0, int $length = 0, int $flags = 0)
7077
{
7178
}
79+
/** @tentative-return-type */
80+
#[\Since('8.3')]
81+
public function replaceFile(string $filepath, int $index, int $start = 0, int $length = ZipArchive::LENGTH_TO_END, int $flags = 0)
82+
{
83+
}
7284
/**
7385
* @tentative-return-type
7486
* @return (array | false)

0 commit comments

Comments
 (0)