From 227bab43a8c6346b263d55b8cf739e21b30dfcf1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 16 Jun 2022 22:15:06 +0200 Subject: [PATCH] Ops, wrong type-hint here, must be string ($nickname can never be an integer). --- src/Model/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/User.php b/src/Model/User.php index 9701a57d72..07f2dfe8de 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -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]); -- 2.39.5