aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Accounts/Hooks.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Accounts/Hooks.php')
-rw-r--r--lib/private/Accounts/Hooks.php17
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/private/Accounts/Hooks.php b/lib/private/Accounts/Hooks.php
index 2288b884c5c..82f55f5a9d1 100644
--- a/lib/private/Accounts/Hooks.php
+++ b/lib/private/Accounts/Hooks.php
@@ -24,23 +24,18 @@
namespace OC\Accounts;
-use OCP\ILogger;
use OCP\IUser;
+use Psr\Log\LoggerInterface;
class Hooks {
- /** @var AccountManager */
- private $accountManager = null;
+ /** @var AccountManager|null */
+ private $accountManager;
- /** @var ILogger */
+ /** @var LoggerInterface */
private $logger;
- /**
- * Hooks constructor.
- *
- * @param ILogger $logger
- */
- public function __construct(ILogger $logger) {
+ public function __construct(LoggerInterface $logger) {
$this->logger = $logger;
}
@@ -85,7 +80,7 @@ class Hooks {
*
* @return AccountManager
*/
- protected function getAccountManager() {
+ protected function getAccountManager(): AccountManager {
if ($this->accountManager === null) {
$this->accountManager = \OC::$server->query(AccountManager::class);
}