diff --git a/libraries/namespacemap.php b/libraries/namespacemap.php index 9cb31ae86c345..39ec5df367c31 100644 --- a/libraries/namespacemap.php +++ b/libraries/namespacemap.php @@ -144,8 +144,11 @@ protected function writeNamespaceFile($elements) */ $error_reporting = error_reporting(0); + // Convert array of lines to string + $content = implode("\n", $content); + try { - File::write($this->file, implode("\n", $content)); + File::write($this->file, $content); } catch (Exception $e) { Log::add('Could not save ' . $this->file, Log::WARNING);