Commit 051e9bc8 authored by Avris's avatar Avris

Social events - fix user nullable

parent 59c308fc
......@@ -7,21 +7,21 @@ use Avris\Micrus\Social\Source\SocialSource;
class UserSocialLoggedInEvent extends Event
{
/** @var UserInterface */
private $user;
/** @var SocialSource */
private $source;
/** @var mixed */
private $payload;
/** @var UserInterface|null */
private $user;
/**
* @param SocialSource $source
* @param mixed $payload
* @param UserInterface $user
* @param UserInterface|null $user
*/
public function __construct(SocialSource $source, $payload, UserInterface $user)
public function __construct(SocialSource $source, $payload, UserInterface $user = null)
{
$this->user = $user;
$this->source = $source;
......@@ -45,7 +45,7 @@ class UserSocialLoggedInEvent extends Event
}
/**
* @return UserInterface
* @return UserInterface|null
*/
public function getUser()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment