aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/User
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/User')
-rw-r--r--lib/public/User/Events/BeforePasswordUpdatedEvent.php2
-rw-r--r--lib/public/User/Events/BeforeUserLoggedOutEvent.php2
-rw-r--r--lib/public/User/Events/PasswordUpdatedEvent.php2
-rw-r--r--lib/public/User/Events/UserLoggedOutEvent.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/User/Events/BeforePasswordUpdatedEvent.php b/lib/public/User/Events/BeforePasswordUpdatedEvent.php
index ee228ae01e7..67c01dec259 100644
--- a/lib/public/User/Events/BeforePasswordUpdatedEvent.php
+++ b/lib/public/User/Events/BeforePasswordUpdatedEvent.php
@@ -52,7 +52,7 @@ class BeforePasswordUpdatedEvent extends Event {
*/
public function __construct(IUser $user,
string $password,
- string $recoveryPassword = null) {
+ ?string $recoveryPassword = null) {
parent::__construct();
$this->user = $user;
$this->password = $password;
diff --git a/lib/public/User/Events/BeforeUserLoggedOutEvent.php b/lib/public/User/Events/BeforeUserLoggedOutEvent.php
index aa81801f474..be6f2848cb2 100644
--- a/lib/public/User/Events/BeforeUserLoggedOutEvent.php
+++ b/lib/public/User/Events/BeforeUserLoggedOutEvent.php
@@ -41,7 +41,7 @@ class BeforeUserLoggedOutEvent extends Event {
/**
* @since 18.0.0
*/
- public function __construct(IUser $user = null) {
+ public function __construct(?IUser $user = null) {
parent::__construct();
$this->user = $user;
}
diff --git a/lib/public/User/Events/PasswordUpdatedEvent.php b/lib/public/User/Events/PasswordUpdatedEvent.php
index 782d6d270ea..b6fa75e0221 100644
--- a/lib/public/User/Events/PasswordUpdatedEvent.php
+++ b/lib/public/User/Events/PasswordUpdatedEvent.php
@@ -52,7 +52,7 @@ class PasswordUpdatedEvent extends Event {
*/
public function __construct(IUser $user,
string $password,
- string $recoveryPassword = null) {
+ ?string $recoveryPassword = null) {
parent::__construct();
$this->user = $user;
$this->password = $password;
diff --git a/lib/public/User/Events/UserLoggedOutEvent.php b/lib/public/User/Events/UserLoggedOutEvent.php
index c1b97fec29c..fa22b1bd53d 100644
--- a/lib/public/User/Events/UserLoggedOutEvent.php
+++ b/lib/public/User/Events/UserLoggedOutEvent.php
@@ -41,7 +41,7 @@ class UserLoggedOutEvent extends Event {
/**
* @since 18.0.0
*/
- public function __construct(IUser $user = null) {
+ public function __construct(?IUser $user = null) {
parent::__construct();
$this->user = $user;
}