fix: [strict typing] Made Sami's frankenstein setup happy

pull/163/head
iglocska 2023-09-12 14:25:16 +02:00
parent 306a8b5538
commit 1a20eaace9
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class OrgGroupsTable extends AppTable
return $validator;
}
public function checkIfGroupAdmin(int $groupId, mixed $user): bool
public function checkIfGroupAdmin(int $groupId, User $user): bool
{
$orgGroup = $this->get($groupId, ['contain' => 'Users']);
if (empty($orgGroup)) {