diff --git a/core/db/DataImporterService.php b/core/db/DataImporterService.php index 625625398ba5c7783b9a49bed3d874597a031193..8d4b7f83577213db4d3a2f36f76aaf29e8aa4c22 100644 --- a/core/db/DataImporterService.php +++ b/core/db/DataImporterService.php @@ -248,7 +248,7 @@ class DataImporterService * * @throws \Exception */ - public function installDatabaseTables(\PDO $pdo, array $tablesToInstall, string $database, bool $overwrite = false, string $tablePrefix = '', string $sqlFilePath = null): void + public function installDatabaseTables(\PDO $pdo, array $tablesToInstall, string $database, bool $overwrite = false, string $tablePrefix = '', ?string $sqlFilePath = null): void { // 设置默认SQL文件路径 if ($sqlFilePath === null) {