Skip to content

Commit e18bfd2

Browse files
authored
[5.2] Fix namespace map creation on PHP 8.4 (#44789)
1 parent 8dab706 commit e18bfd2

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)