mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
type hinting changes
This commit is contained in:
1 parent
84ba24db8c
commit
584e4ef41d
1 file changed
+3
-5
+3
-5
@@ -94,18 +94,16 @@ class Login
|
||||
/**
|
||||
* returns user's domain name
|
||||
* @param $username
|
||||
* @return mixed|null
|
||||
* @return string|null
|
||||
* @throws Exception
|
||||
*/
|
||||
protected function getUserDomain($username)
|
||||
protected function getUserDomain(string $username)
|
||||
{
|
||||
$sql = "SELECT domain FROM {$this->table} WHERE username = :username AND active = :active";
|
||||
|
||||
$active = db_get_boolean(true);
|
||||
|
||||
$values = [
|
||||
'username' => $username,
|
||||
'active' => $active,
|
||||
'active' => db_get_boolean(true),
|
||||
];
|
||||
|
||||
// Fetch the domain
|
||||
|
||||
Reference in new issue
Block a user