1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-10 19:32:07 +00:00

Update phpunit dep for phpstan

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
Kevin Decherf 2021-08-05 22:33:04 +02:00
parent 6a044f8c6e
commit 9a4ff85cf5
3 changed files with 6 additions and 2 deletions

View file

@ -373,13 +373,15 @@ class User extends BaseUser implements EmailTwoFactorInterface, GoogleTwoFactorI
/**
* Only used by the API when creating a new user it'll also return the first client (which was also created at the same time).
*
* @return Client
* @return Client|false
*/
public function getFirstClient()
{
if (!empty($this->clients)) {
return $this->clients->first();
}
return false;
}
/**