- Affected version
- 2.3 Beta 7
Getting two constantly reported in the log after upgrade (test system)
1: ErrorException: [E_DEPRECATED] Return type of Laminas\Feed\Reader\Feed\AbstractFeed::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
src/vendor/laminas/laminas-feed/src/Reader/Feed/AbstractFeed.php:216
#1 src/vendor/composer/ClassLoader.php(576): include('/home/sixcrazyd...')
#2 src/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/home/sixcrazyd...')
#3 src/vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php(112): Composer\Autoload\ClassLoader->loadClass('Laminas\\Feed\\Re...')
#4 src/vendor/laminas/laminas-feed/src/Reader/Feed/Rss.php(17): Laminas\ZendFrameworkBridge\Autoloader::Laminas\ZendFrameworkBridge\{closure}('Laminas\\Feed\\Re...')
#5 src/vendor/composer/ClassLoader.php(576): include('/home/sixcrazyd...')
#6 src/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/home/sixcrazyd...')
#7 src/vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php(112): Composer\Autoload\ClassLoader->loadClass('Laminas\\Feed\\Re...')
#8 src/vendor/laminas/laminas-feed/src/Reader/Reader.php(366): Laminas\ZendFrameworkBridge\Autoloader::Laminas\ZendFrameworkBridge\{closure}('Laminas\\Feed\\Re...')
#9 src/XF/Service/Feed/Reader.php(55): Laminas\Feed\Reader\Reader::importString('<?xml version="...')
#10 src/XF/Service/Feed/Reader.php(27): XF\Service\Feed\Reader->setFeed()
#11 src/XF/Container.php(273): XF\Service\Feed\Reader->__construct(Object(XF\Pub\App), 'https://www.sky...')
#12 src/XF/App.php(1786): XF\Container->createObject('XF\\Service\\Feed...', Array)
#13 src/XF/Container.php(231): XF\App->XF\{closure}('XF\\Service\\Feed...', Array, Object(XF\Container))
#14 src/XF/App.php(3327): XF\Container->create('service', 'XF:Feed\\Reader', Array)
#15 src/XF/Service/AbstractService.php(88): XF\App->service('XF:Feed\\Reader', 'https://www.sky...')
#16 src/XF/Service/Feed/Feeder.php(212): XF\Service\AbstractService->service('XF:Feed\\Reader', 'https://www.sky...')
#17 src/XF/Service/Feed/Feeder.php(26): XF\Service\Feed\Feeder->getFeedReader()
#18 src/XF/Job/Feeder.php(37): XF\Service\Feed\Feeder->setupImport(Object(XF\Entity\Feed))
#19 src/XF/Job/Manager.php(272): XF\Job\Feeder->run(7.89126)
#20 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 7.89126)
#21 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 7.89126)
#22 job.php(43): XF\Job\Manager->runQueue(false, 8)
#23 {main}
2: ErrorException: [E_DEPRECATED] trim(): Passing null to parameter #1 ($string) of type string is deprecated
src/vendor/laminas/laminas-feed/src/Reader/Extension/Atom/Entry.php:127
#1 src/vendor/laminas/laminas-feed/src/Reader/Extension/Atom/Entry.php(127): trim(NULL)
#2 src/vendor/laminas/laminas-feed/src/Reader/Entry/Rss.php(154): Laminas\Feed\Reader\Extension\Atom\Entry->getContent()
#3 src/XF/Service/Feed/Reader.php(120): Laminas\Feed\Reader\Entry\Rss->getContent()
#4 src/XF/Service/Feed/Reader.php(100): XF\Service\Feed\Reader->getFeedEntries()
#5 src/XF/Service/Feed/Feeder.php(27): XF\Service\Feed\Reader->getFeedData()
#6 src/XF/Job/Feeder.php(37): XF\Service\Feed\Feeder->setupImport(Object(XF\Entity\Feed))
#7 src/XF/Job/Manager.php(272): XF\Job\Feeder->run(7.89126)
#8 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 7.89126)
#9 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 7.89126)
#10 job.php(43): XF\Job\Manager->runQueue(false, 8)
#11 {main}
1: ErrorException: [E_DEPRECATED] Return type of Laminas\Feed\Reader\Feed\AbstractFeed::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
src/vendor/laminas/laminas-feed/src/Reader/Feed/AbstractFeed.php:216
Stack trace
#0 src/vendor/laminas/laminas-feed/src/Reader/Feed/AbstractFeed.php(17): XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/home/sixcrazyd...', 216)#1 src/vendor/composer/ClassLoader.php(576): include('/home/sixcrazyd...')
#2 src/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/home/sixcrazyd...')
#3 src/vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php(112): Composer\Autoload\ClassLoader->loadClass('Laminas\\Feed\\Re...')
#4 src/vendor/laminas/laminas-feed/src/Reader/Feed/Rss.php(17): Laminas\ZendFrameworkBridge\Autoloader::Laminas\ZendFrameworkBridge\{closure}('Laminas\\Feed\\Re...')
#5 src/vendor/composer/ClassLoader.php(576): include('/home/sixcrazyd...')
#6 src/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/home/sixcrazyd...')
#7 src/vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php(112): Composer\Autoload\ClassLoader->loadClass('Laminas\\Feed\\Re...')
#8 src/vendor/laminas/laminas-feed/src/Reader/Reader.php(366): Laminas\ZendFrameworkBridge\Autoloader::Laminas\ZendFrameworkBridge\{closure}('Laminas\\Feed\\Re...')
#9 src/XF/Service/Feed/Reader.php(55): Laminas\Feed\Reader\Reader::importString('<?xml version="...')
#10 src/XF/Service/Feed/Reader.php(27): XF\Service\Feed\Reader->setFeed()
#11 src/XF/Container.php(273): XF\Service\Feed\Reader->__construct(Object(XF\Pub\App), 'https://www.sky...')
#12 src/XF/App.php(1786): XF\Container->createObject('XF\\Service\\Feed...', Array)
#13 src/XF/Container.php(231): XF\App->XF\{closure}('XF\\Service\\Feed...', Array, Object(XF\Container))
#14 src/XF/App.php(3327): XF\Container->create('service', 'XF:Feed\\Reader', Array)
#15 src/XF/Service/AbstractService.php(88): XF\App->service('XF:Feed\\Reader', 'https://www.sky...')
#16 src/XF/Service/Feed/Feeder.php(212): XF\Service\AbstractService->service('XF:Feed\\Reader', 'https://www.sky...')
#17 src/XF/Service/Feed/Feeder.php(26): XF\Service\Feed\Feeder->getFeedReader()
#18 src/XF/Job/Feeder.php(37): XF\Service\Feed\Feeder->setupImport(Object(XF\Entity\Feed))
#19 src/XF/Job/Manager.php(272): XF\Job\Feeder->run(7.89126)
#20 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 7.89126)
#21 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 7.89126)
#22 job.php(43): XF\Job\Manager->runQueue(false, 8)
#23 {main}
2: ErrorException: [E_DEPRECATED] trim(): Passing null to parameter #1 ($string) of type string is deprecated
src/vendor/laminas/laminas-feed/src/Reader/Extension/Atom/Entry.php:127
Stack trace
#0 [internal function]: XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/home/sixcrazyd...', 127)#1 src/vendor/laminas/laminas-feed/src/Reader/Extension/Atom/Entry.php(127): trim(NULL)
#2 src/vendor/laminas/laminas-feed/src/Reader/Entry/Rss.php(154): Laminas\Feed\Reader\Extension\Atom\Entry->getContent()
#3 src/XF/Service/Feed/Reader.php(120): Laminas\Feed\Reader\Entry\Rss->getContent()
#4 src/XF/Service/Feed/Reader.php(100): XF\Service\Feed\Reader->getFeedEntries()
#5 src/XF/Service/Feed/Feeder.php(27): XF\Service\Feed\Reader->getFeedData()
#6 src/XF/Job/Feeder.php(37): XF\Service\Feed\Feeder->setupImport(Object(XF\Entity\Feed))
#7 src/XF/Job/Manager.php(272): XF\Job\Feeder->run(7.89126)
#8 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 7.89126)
#9 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 7.89126)
#10 job.php(43): XF\Job\Manager->runQueue(false, 8)
#11 {main}