diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 07658c689..8e115fce6 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -966,7 +966,7 @@ function ldapGetDN($dn, $attributes = ['dn'], $handle = null): ?array { * @param String $dn DN * @param String $filter LDAP filter * @param array $attributes list of attributes to fetch - * @param handle $handle LDAP handle (optional for admin interface pages) + * @param Connection|null $handle LDAP handle (optional for admin interface pages) * @param int $limit result limit * @return array attributes or null if not found */ diff --git a/lam/lib/modules/imapAccess.inc b/lam/lib/modules/imapAccess.inc index e78186fa0..32196de21 100644 --- a/lam/lib/modules/imapAccess.inc +++ b/lam/lib/modules/imapAccess.inc @@ -306,8 +306,8 @@ class imapAccess extends baseModule { * Display the mailbox quota. * * @param htmlResponsiveRow $container structure that contained information to be displayed - * @param Horde_Imap_Client_Socket $client IMAP client - * @param String $username user name to connect to IMAP server + * @param Client $client IMAP client + * @param String $username username to connect to IMAP server * @return htmlResponsiveRow table with added information about user quotas or controls to add quota */ function renderQuotasForMailbox($container, $client, $username) { diff --git a/lam/lib/plugins/extendedInvalidCredentials/ExtraInvalidCredentials.inc b/lam/lib/plugins/extendedInvalidCredentials/ExtraInvalidCredentials.inc index 475be82c4..aabcc1d8b 100644 --- a/lam/lib/plugins/extendedInvalidCredentials/ExtraInvalidCredentials.inc +++ b/lam/lib/plugins/extendedInvalidCredentials/ExtraInvalidCredentials.inc @@ -23,6 +23,8 @@ namespace LAM\PLUGINS\EXTRA_INVALID_CREDENTIALS; */ +use LDAP\Connection; + /** * Extra messages for invalid credentials. * @@ -39,7 +41,7 @@ class ExtraInvalidCredentials { /** * Tries to get additional information why invalid credentials was returned. E.g. account is locked. * - * @param LDAP\Connection $ldap LDAP object to connect for getting extra data + * @param Connection $ldap LDAP object to connect for getting extra data * @param string $userDn failed DN * @return null|string extra message */ @@ -99,7 +101,7 @@ class ExtraInvalidCredentials { * * @param string $userDn user DN * @param array $attributes attribute names - * @param LDAP\Connection $ldap LDAP handle + * @param Connection $ldap LDAP handle * @return array|null attribute values */ protected function getLdapData(string $userDn, array $attributes, $ldap) { @@ -116,7 +118,7 @@ class ExtraInvalidCredentials { * * @param ExtraInvalidCredentialsProvider[] $providers providers * @param array $userData LDAP data - * @param LDAP\Connection $ldap LDAP handle + * @param Connection $ldap LDAP handle * @return null|string extra message */ protected function getMessageFromProviders(array $providers, array $userData, $ldap) { @@ -149,7 +151,7 @@ interface ExtraInvalidCredentialsProvider { * Returns an extra message if any. * * @param array $attributes LDAP attributes - * @param LDAP\Connection $ldap LDAP handle + * @param Connection $ldap LDAP handle * @return null|string message */ public function getExtraMessage(array $attributes, $ldap); diff --git a/lam/lib/types/asteriskExt.inc b/lam/lib/types/asteriskExt.inc index f78f9d08f..15ee2c7fd 100644 --- a/lam/lib/types/asteriskExt.inc +++ b/lam/lib/types/asteriskExt.inc @@ -4,7 +4,7 @@ This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam) Copyright (C) 2009 - 2012 Pozdnyak Pavel - 2010 - 2024 Roland Gruber + 2010 - 2025 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,6 +30,8 @@ * @author Roland Gruber */ +use LAM\TYPES\ConfiguredType; + /** * The account type for Asterisk extensions. * diff --git a/lam/lib/types/group.inc b/lam/lib/types/group.inc index 2bdf260e3..ba82a90ee 100644 --- a/lam/lib/types/group.inc +++ b/lam/lib/types/group.inc @@ -1,5 +1,6 @@