Skip to content

Commit

Permalink
[5.2] Fix namespace map creation on PHP 8.4 (#44789)
Browse files Browse the repository at this point in the history
  • Loading branch information
SniperSister authored Jan 31, 2025
1 parent 8dab706 commit e18bfd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libraries/namespacemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e18bfd2

Please sign in to comment.