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:
parent
84ba24db8c
commit
584e4ef41d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user