<?php namespace Flarum\Core\Support;

use Flarum\Core\Models\User;
use Flarum\Core\Models\Guest;

class Actor
{
    protected $user;

    public function getUser()
    {
        return $this->user ?: new Guest;
    }

    public function setUser(User $user)
    {
        $this->user = $user;
    }
}

<?php namespace Flarum\Core\Support;

use Flarum\Core\Models\Guest;

class Actor
{
    protected $user;

    public function getUser()
    {
        return $this->user ?: new Guest;
    }

    public function setUser($user)
    {
        $this->user = $user;
    }
}

Fix setting user to null, for now
Fix setting user to null, for now

Still need to flesh out the exact purpose/use of the Actor class
