diff --git a/core/plugin/PluginInstall.php b/core/plugin/PluginInstall.php index 39d1533588a856e1664d5f06356891f42ebf0a4b..09e7518e2b5b28404e41cdfc98900d0aa217772f 100644 --- a/core/plugin/PluginInstall.php +++ b/core/plugin/PluginInstall.php @@ -98,7 +98,7 @@ class PluginInstall /** * 输出日志(CLI 模式 echo,在线模式通过回调) */ - protected function log(string $message, int $progress = null): void + protected function log(string $message, ?int $progress = null): void { if ($this->isOnlineMode && $this->progressCallback) { // 在线模式:通过回调返回进度