1
0
mirror of https://github.com/flarum/core.git synced 2025-07-19 07:41:22 +02: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:
Toby Zerner
2015-02-26 12:45:29 +10:30
parent 5d9332fc7b
commit 0c4f280534

View File

@@ -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;
}