From 557921edfa18f6091f493c8be4c495b418632a53 Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Thu, 12 Jan 2023 04:07:43 +0200 Subject: [PATCH] Uncaught TypeError: Argument 1 passed to User::snatItem() must be of the type int, null given --- _incl_data/class/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_incl_data/class/User.php b/_incl_data/class/User.php index c3748e4c..5b697c5d 100644 --- a/_incl_data/class/User.php +++ b/_incl_data/class/User.php @@ -9097,7 +9097,7 @@ LIMIT 1' } } - public function snatItem(int $id, int $uid = 0): int + public function snatItem(?int $id, int $uid = 0): int { if (empty($id)) { return 0;