Uncaught TypeError: Argument 1 passed to User::snatItem() must be of the type int, null given

This commit is contained in:
Ivor Barhansky 2023-01-12 04:07:43 +02:00
parent f3bee1c3ac
commit 557921edfa

View File

@ -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;