Write RSS Feed in Laminas

Code
<?php

use Laminas\Debug\Debug;
use 
Laminas\Feed\Writer\Entry;
use 
Laminas\Feed\Writer\Feed;
use 
Laminas\Feed\Writer\Renderer\Feed\Rss;

$dateTime = new DateTime('2014-07-20 13:05:11');

// create Feed
$feed = new Feed();
$feed->setCopyright('&copy; by me');
$feed->setTitle('My dummy news');
$feed->setLink('http://php.budgegeria.de');
$feed->setDescription('Actually, there is nothing to read.');
$feed->setDateCreated($dateTime);
$feed->setDateModified($dateTime);
$feed->setLastBuildDate($dateTime);
$feed->setLanguage('english');
$feed->setId('http://php.budgegeria.de');
$feed->addAuthor(['name' => 'Ingo Petent']);
$feed->addCategory(['term' => 'nothing']);

// create dummy entries for feed
for ($i 1$i 4$i++) {
    
$entry = new Entry();
    
$entry->setCopyright('&copy; by me');
    
$entry->setTitle('Title ' $i);
    
$entry->setContent('my content ' $i);
    
$entry->setId('http://php.budgegeria.de/' $i);
    
$entry->setLink('http://php.budgegeria.de');
    
$entry->setDescription('This is all about entry no. ' $i);
    
$entry->setDateCreated($dateTime);
    
$entry->setDateModified($dateTime);
    
$entry->addAuthor(['name' => 'Ingo Petent']);
    
$feed->addEntry($entry);
}

// now the part where we define that we want RSS
$rss = new Rss($feed);
$rss->render();
dump($rss->saveXml());
Result
^ """
<?xml version="1.0" encoding="UTF-8"?>\n
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">\n
  <channel>\n
    <language>english</language>\n
    <title>My dummy news</title>\n
    <description>Actually, there is nothing to read.</description>\n
    <pubDate>Sun, 20 Jul 2014 13:05:11 +0200</pubDate>\n
    <lastBuildDate>Sun, 20 Jul 2014 13:05:11 +0200</lastBuildDate>\n
    <generator>Laminas_Feed_Writer 2 (https://getlaminas.org)</generator>\n
    <link>http://php.budgegeria.de</link>\n
    <author>Ingo Petent</author>\n
    <copyright>&amp;copy; by me</copyright>\n
    <category>nothing</category>\n
    <dc:creator>Ingo Petent</dc:creator>\n
    <item>\n
      <title>Title 1</title>\n
      <description><![CDATA[This is all about entry no. 1]]></description>\n
      <pubDate>Sun, 20 Jul 2014 13:05:11 +0200</pubDate>\n
      <link>http://php.budgegeria.de</link>\n
      <guid>http://php.budgegeria.de/1</guid>\n
      <author>Ingo Petent</author>\n
      <dc:creator>Ingo Petent</dc:creator>\n
      <content:encoded><![CDATA[my content 1]]></content:encoded>\n
      <slash:comments>0</slash:comments>\n
    </item>\n
    <item>\n
      <title>Title 2</title>\n
      <description><![CDATA[This is all about entry no. 2]]></description>\n
      <pubDate>Sun, 20 Jul 2014 13:05:11 +0200</pubDate>\n
      <link>http://php.budgegeria.de</link>\n
      <guid>http://php.budgegeria.de/2</guid>\n
      <author>Ingo Petent</author>\n
      <dc:creator>Ingo Petent</dc:creator>\n
      <content:encoded><![CDATA[my content 2]]></content:encoded>\n
      <slash:comments>0</slash:comments>\n
    </item>\n
    <item>\n
      <title>Title 3</title>\n
      <description><![CDATA[This is all about entry no. 3]]></description>\n
      <pubDate>Sun, 20 Jul 2014 13:05:11 +0200</pubDate>\n
      <link>http://php.budgegeria.de</link>\n
      <guid>http://php.budgegeria.de/3</guid>\n
      <author>Ingo Petent</author>\n
      <dc:creator>Ingo Petent</dc:creator>\n
      <content:encoded><![CDATA[my content 3]]></content:encoded>\n
      <slash:comments>0</slash:comments>\n
    </item>\n
  </channel>\n
</rss>\n
"""
Used Versions
PHP 7.4, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8