0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

type hinting changes

This commit is contained in:
David Goodwin 2021-05-13 12:56:38 +01:00
parent 84ba24db8c
commit 584e4ef41d

View File

@ -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