Skip to content

Commit

Permalink
Fix User return types (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinelame committed Jan 4, 2023
1 parent 107db77 commit d5f0a31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/AbstractUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getId()
/**
* Get the nickname / username for the user.
*
* @return string
* @return ?string
*/
public function getNickname()
{
Expand All @@ -79,7 +79,7 @@ public function getNickname()
/**
* Get the full name of the user.
*
* @return string
* @return ?string
*/
public function getName()
{
Expand All @@ -89,7 +89,7 @@ public function getName()
/**
* Get the e-mail address of the user.
*
* @return string
* @return ?string
*/
public function getEmail()
{
Expand All @@ -99,7 +99,7 @@ public function getEmail()
/**
* Get the avatar / image URL for the user.
*
* @return string
* @return ?string
*/
public function getAvatar()
{
Expand Down
8 changes: 4 additions & 4 deletions src/Contracts/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@ public function getId();
/**
* Get the nickname / username for the user.
*
* @return string
* @return ?string
*/
public function getNickname();

/**
* Get the full name of the user.
*
* @return string
* @return ?string
*/
public function getName();

/**
* Get the e-mail address of the user.
*
* @return string
* @return ?string
*/
public function getEmail();

/**
* Get the avatar / image URL for the user.
*
* @return string
* @return ?string
*/
public function getAvatar();
}

0 comments on commit d5f0a31

Please sign in to comment.