mirror of
https://github.com/flarum/framework.git
synced 2025-05-09 04:52:27 +08:00
Fix setting user to null, for now
Still need to flesh out the exact purpose/use of the Actor class
This commit is contained in:
parent
074b4d0989
commit
f2fe0a2e1d
@ -1,6 +1,5 @@
|
||||
<?php namespace Flarum\Core\Support;
|
||||
|
||||
use Flarum\Core\Models\User;
|
||||
use Flarum\Core\Models\Guest;
|
||||
|
||||
class Actor
|
||||
@ -12,7 +11,7 @@ class Actor
|
||||
return $this->user ?: new Guest;
|
||||
}
|
||||
|
||||
public function setUser(User $user)
|
||||
public function setUser($user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user