Ops, wrong type-hint here, must be string ($nickname can never be an integer).

This commit is contained in:
Roland Häder 2022-06-16 22:15:06 +02:00
parent f7c1eaa858
commit 227bab43a8

View file

@ -469,7 +469,7 @@ class User
* @return boolean|array
* @throws Exception
*/
public static function getOwnerDataByNick(int $nick)
public static function getOwnerDataByNick(string $nick)
{
$user = DBA::selectFirst('user', ['uid'], ['nickname' => $nick]);