From d35f57801b7f8184fdb28298fa90d24d7098e4cc Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sat, 28 Oct 2023 19:49:29 +0200 Subject: [PATCH] Introduce local variable --- .../src/Framework/Actions/PreBuildTasks/CleanSiteDirectory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/framework/src/Framework/Actions/PreBuildTasks/CleanSiteDirectory.php b/packages/framework/src/Framework/Actions/PreBuildTasks/CleanSiteDirectory.php index d03c6a9dedf..6f7a8af4fdc 100644 --- a/packages/framework/src/Framework/Actions/PreBuildTasks/CleanSiteDirectory.php +++ b/packages/framework/src/Framework/Actions/PreBuildTasks/CleanSiteDirectory.php @@ -61,6 +61,7 @@ protected function askIfUnsafeDirectoryShouldBeEmptied(): bool protected function safeOutputDirectories(): array { /** @var array $directories */ - return Config::getArray('hyde.safe_output_directories', ['_site', 'docs', 'build']); + $directories = Config::getArray('hyde.safe_output_directories', ['_site', 'docs', 'build']); + return $directories; } }