Duplicate Featured RSS Feed error

DragonByte Tech

Well-known member
Affected version
2.3.3
Code:
ErrorException: [E_DEPRECATED] Return type of Laminas\Feed\Writer\Feed::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
src/vendor/laminas/laminas-feed/src/Writer/Feed.php:167

#0 src/vendor/laminas/laminas-feed/src/Writer/Feed.php(14): XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/Users/Shared/w...', 167)
#1 src/vendor/composer/ClassLoader.php(576): include('/Users/Shared/w...')
#2 src/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/Users/Shared/w...')
#3 src/vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php(112): Composer\Autoload\ClassLoader->loadClass('Laminas\\Feed\\Wr...')
#4 src/XF/Pub/View/FeaturedContent/Rss.php(31): Laminas\ZendFrameworkBridge\Autoloader::Laminas\ZendFrameworkBridge\{closure}('Laminas\\Feed\\Wr...')
#5 src/XF/Pub/View/FeaturedContent/Rss.php(19): XF\Pub\View\FeaturedContent\Rss->createFeed()
#6 src/XF/Mvc/Renderer/AbstractRenderer.php(92): XF\Pub\View\FeaturedContent\Rss->renderRss()
#7 src/XF/Mvc/Renderer/Xml.php(72): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('XF:FeaturedCont...', '', Array)
#8 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Xml->renderView('XF:FeaturedCont...', '', Array)
#9 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Rss), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Rss), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'rss')
#12 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#13 src/XF.php(806): XF\App->run()
#14 index.php(23): XF::runApp('XF\\Pub\\App')
#15 {main}

The same applies to Feed::next(), Feed::key(), Feed::valid(), Feed::rewind(), and Feed::count(). This is a regression from 2.3.2 where no such error appeared.

I'm running PHP 8.3.9.
 
Back
Top Bottom