Skip to content

Commit e5b1ffe

Browse files
authored
Update Zip.php
1 parent 5acc87b commit e5b1ffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utils/Zip.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function __construct()
1414
$this->zipFile = new ZipFile();
1515
}
1616

17-
public function pack(string $sourcePath, ?string $filename = null, ?string $targetPath = null)
17+
public function pack(string $sourcePath, ?string $filename = null, ?string $targetPath = null): ?string
1818
{
1919
if (!File::exists($sourcePath)) {
2020
throw new \RuntimeException("待解压目录不存在 {$sourcePath}");
@@ -44,7 +44,7 @@ public function pack(string $sourcePath, ?string $filename = null, ?string $targ
4444
return $targetPath;
4545
}
4646

47-
public function unpack(string $sourcePath, ?string $dirname = null)
47+
public function unpack(string $sourcePath, ?string $dirname = null): ?string
4848
{
4949
try {
5050
// 检测文件类型,只有 zip 文件才进行解压操作

0 commit comments

Comments
 (0)