Initially reported and debugged at https://github.com/SimpleMachines/smf-mw-auth/issues/10
In User::doLogout():
\MediaWiki\Logger\LoggerFactory::getInstance( 'session' ) ->warning( __METHOD__ . ": Cannot log user \"$this\" out of a user \"{$session->getUser()}\"'s session" );
relying upon the implicit $this->__toString().
public function __toString() { return $this->getName(); }
okay looks fine,
getName() calls IP::sanitizeIP which can return null. Unsure why that is returning null, but we should at least make sure __toString() always returns a string, or throw an error earlier in the stack.