Skip to content

Commit 7d5943a

Browse files
committed
fix PHP 8.4 bug preventing namespace map being written
1 parent 365fb99 commit 7d5943a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libraries/namespacemap.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,11 @@ protected function writeNamespaceFile($elements)
144144
*/
145145
$error_reporting = error_reporting(0);
146146

147+
// Convert array of lines to string
148+
$content = implode("\n", $content);
149+
147150
try {
148-
File::write($this->file, implode("\n", $content));
151+
File::write($this->file, $content);
149152
} catch (Exception $e) {
150153
Log::add('Could not save ' . $this->file, Log::WARNING);
151154

0 commit comments

Comments
 (0)