aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/User
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-06-22 12:05:26 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-06-22 16:11:42 +0200
commit812016d62614ac3669a3fdf51fa2e07170e08c08 (patch)
tree1d67fcb259fae084881e50741ea6d7a5beb3e648 /lib/public/User
parentb282fe1e6f5587a6440d170df245ad5acb8dc976 (diff)
downloadnextcloud-server-812016d62614ac3669a3fdf51fa2e07170e08c08.tar.gz
nextcloud-server-812016d62614ac3669a3fdf51fa2e07170e08c08.zip
Cleanup avatar related code
- Move event listener to new event handling - Add typing almost everywhere - Fix inconsistent interface parameter Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/public/User')
-rw-r--r--lib/public/User/Events/UserChangedEvent.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/public/User/Events/UserChangedEvent.php b/lib/public/User/Events/UserChangedEvent.php
index 3a40f8c3f11..f48dd3914e6 100644
--- a/lib/public/User/Events/UserChangedEvent.php
+++ b/lib/public/User/Events/UserChangedEvent.php
@@ -32,16 +32,10 @@ use OCP\IUser;
* @since 18.0.0
*/
class UserChangedEvent extends Event {
-
- /** @var IUser */
- private $user;
-
- /** @var string */
- private $feature;
-
+ private IUser $user;
+ private string $feature;
/** @var mixed */
private $value;
-
/** @var mixed */
private $oldValue;