Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification::setUser(): Argument #1 ($user) must be of type string, null given #13517

Closed
nickvergessen opened this issue Oct 11, 2024 · 1 comment

Comments

@nickvergessen
Copy link
Member

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

OC\Notification\Notification::setUser(): Argument #1 ($user) must be of type string, null given, called in …/lib/Controller/PageController.php on line 171

From prod

@nickvergessen
Copy link
Member Author

$user = $this->userSession->getUser();
if (!$user instanceof IUser) {

was not matching, but $this->userId is null …

->setUser($this->userId)

sure...

@nickvergessen nickvergessen closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant