type hinting changes

This commit is contained in:
David Goodwin committed 2021-05-13 12:56:38 +01:00
1 parent 84ba24db8c
commit 584e4ef41d
1 file changed
+3 -5
+3 -5
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