fix: unit test & psalm static code analysis issues
Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
committed by
Julius Härtl
parent
b01d472745
commit
b7f3c2d140
@@ -33,7 +33,7 @@ final class TransferOwnership extends Command {
|
||||
);
|
||||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
$owner = $input->getArgument('owner');
|
||||
$newOwner = $input->getArgument('newOwner');
|
||||
|
||||
@@ -42,5 +42,7 @@ final class TransferOwnership extends Command {
|
||||
$this->boardService->transferOwnership($owner, $newOwner);
|
||||
|
||||
$output->writeln("Transfer deck boards from $owner to $newOwner completed");
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,11 +148,12 @@ class AssignmentMapper extends QBMapper implements IPermissionMapper {
|
||||
}
|
||||
|
||||
/**
|
||||
* @psalm-suppress InvalidScalarArgument
|
||||
* @param $ownerId
|
||||
* @param $newOwnerId
|
||||
* @return void
|
||||
*/
|
||||
public function transferOwnership($ownerId, $newOwnerId) {
|
||||
public function transferOwnership(string $ownerId, string $newOwnerId) {
|
||||
$params = [
|
||||
'newOwner' => $newOwnerId,
|
||||
'type' => Assignment::TYPE_USER
|
||||
|
||||
Reference in New Issue
Block a user