TypeError: XF\Service\User\Downgrade::__construct(): Argument #3 ($user) must be of type XF\Entity\User, null given, called in /.../htdocs/forum/src/XF/Container.php on line 276 src/XF/Service/User/Downgrade.php:29
#0 src/XF/Container.php(276): XF\Service\User\Downgrade->__construct(Object(XF\Pub\App), Object(XF\Entity\UserUpgrade), NULL, Object(XF\Entity\UserUpgradeActive))
#1 src/XF/App.php(1725): XF\Container->createObject('XF\\Service\\User...', Array)
#2 src/XF/Container.php(234): XF\App->XF\{closure}('XF\\Service\\User...', Array, Object(XF\Container))
#3 src/XF/App.php(3162): XF\Container->create('service', 'XF:User\\Downgra...', Array)
#4 src/XF/Repository/UserUpgrade.php(140): XF\App->service('XF:User\\Downgra...', Object(XF\Entity\UserUpgrade), NULL, Object(XF\Entity\UserUpgradeActive))
#5 src/XF/Cron/CleanUp.php(192): XF\Repository\UserUpgrade->downgradeExpiredUpgrades()
#6 src/XF/Job/Cron.php(37): XF\Cron\CleanUp::runUserDowngrade(Object(XF\Entity\CronEntry))
#7 src/XF/Job/Manager.php(260): XF\Job\Cron->run(8)
#8 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#9 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#10 job.php(43): XF\Job\Manager->runQueue(false, 8)
#11 {main}
#0 src/XF/Container.php(276): XF\Service\User\Downgrade->__construct(Object(XF\Pub\App), Object(XF\Entity\UserUpgrade), NULL, Object(XF\Entity\UserUpgradeActive))
#1 src/XF/App.php(1725): XF\Container->createObject('XF\\Service\\User...', Array)
#2 src/XF/Container.php(234): XF\App->XF\{closure}('XF\\Service\\User...', Array, Object(XF\Container))
#3 src/XF/App.php(3162): XF\Container->create('service', 'XF:User\\Downgra...', Array)
#4 src/XF/Repository/UserUpgrade.php(140): XF\App->service('XF:User\\Downgra...', Object(XF\Entity\UserUpgrade), NULL, Object(XF\Entity\UserUpgradeActive))
#5 src/XF/Cron/CleanUp.php(192): XF\Repository\UserUpgrade->downgradeExpiredUpgrades()
#6 src/XF/Job/Cron.php(37): XF\Cron\CleanUp::runUserDowngrade(Object(XF\Entity\CronEntry))
#7 src/XF/Job/Manager.php(260): XF\Job\Cron->run(8)
#8 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#9 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#10 job.php(43): XF\Job\Manager->runQueue(false, 8)
#11 {main}