Upgrade to 3.1.2

This commit is contained in:
Bastian Allgeier
2019-04-09 14:34:12 +02:00
parent 852a14595e
commit eb29ef6d6c
58 changed files with 535 additions and 258 deletions

View File

@@ -292,11 +292,15 @@ class User extends ModelWithContent
/**
* Compares the current object with the given user object
*
* @param User $user
* @param User|null $user
* @return bool
*/
public function is(User $user): bool
public function is(User $user = null): bool
{
if ($user === null) {
return false;
}
return $this->id() === $user->id();
}