Currently it's possible for the hook to pass "false" in for $user, which caused T96145. That doesn't seem very useful.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Always pass a valid User object to LoginUserMigrated hook | mediawiki/core | master | +5 -2 |
Related Objects
Related Objects
- Mentioned In
- rMW4b504768553c: Always pass a valid User object to LoginUserMigrated hook
T96145: LoginUserMigrated hook causing Fatal Error: Argument 1 passed to CentralAuthUser::getInstance() must be an instance of User, bool given - Mentioned Here
- T96145: LoginUserMigrated hook causing Fatal Error: Argument 1 passed to CentralAuthUser::getInstance() must be an instance of User, bool given
Event Timeline
Comment Actions
Change 211239 had a related patch set uploaded (by Legoktm):
Always pass a valid User object to LoginUserMigrated hook
Comment Actions
Change 211239 merged by jenkins-bot:
Always pass a valid User object to LoginUserMigrated hook