diff --git a/library/think/console/command/optimize/Config.php b/library/think/console/command/optimize/Config.php index d857873f..dc07ee22 100644 --- a/library/think/console/command/optimize/Config.php +++ b/library/think/console/command/optimize/Config.php @@ -78,7 +78,7 @@ class Config extends Command // 加载公共文件 if (is_file($path . 'common' . EXT)) { - $content .= substr(file_get_contents($path . 'common' . EXT), 5) . PHP_EOL; + $content .= substr(php_strip_whitespace($path . 'common' . EXT), 5) . PHP_EOL; } $content .= '\think\Config::set(' . var_export(\think\Config::get(), true) . ');';