Skip to content

Commit 45acd0f

Browse files
committed
修正兼容性
1 parent d3bdd2c commit 45acd0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/think/console/command/optimize/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private function cacheTable(string $table, ?string $connectionName = null): void
108108
/**
109109
* 缓存模型
110110
*/
111-
private function cacheModel(string $dir = null): void
111+
private function cacheModel(?string $dir = null): void
112112
{
113113
if ($dir) {
114114
$modelDir = $this->app->getAppPath() . $dir . DIRECTORY_SEPARATOR . 'model' . DIRECTORY_SEPARATOR;

0 commit comments

Comments
 (0)