Discord Cannot Reproduce Assert error on upgrade

Affected add-on version
2.5.7
Hello!

I am getting this on upgrading to 2.5.7:
Code:
AssertionError: assert($user instanceof \NF\Discord\XF\Entity\User) src/addons/NF/Discord/Job/SyncLog.php:48

#0 src/addons/NF/Discord/Job/SyncLog.php(48): assert(false, 'assert($user in...')
#1 src/XF/Job/AbstractRebuildJob.php(47): NF\Discord\Job\SyncLog->rebuildById(1)
#2 src/XF/Job/Manager.php(260): XF\Job\AbstractRebuildJob->run(8)
#3 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#4 src/XF/Job/Manager.php(171): XF\Job\Manager->runJobEntry(Array, 8)
#5 src/XF/Cli/Runner.php(223): XF\Job\Manager->runById(105621, 8)
#6 src/XF/Cli/Runner.php(112): XF\Cli\Runner->postExecutionCleanUp(Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 cmd.php(15): XF\Cli\Runner->run()
#8 {main}

I guess the code assumes that no other add-on extends XF:User?
 
My add-ons? No. But the assertion is probably because the instanceof is confused when User is extended by multiple add-ons.
 
No, it's not caused by the User class being extended by other add-ons. The assertion is just a sanity check to make sure the Discord add-on is extending the base class.

Are you able to open a ticket and provide an admin login so I can have a look?
 
Back
Top