From 3b6082ad70b2c699dd414d4a9dd57b915de87e53 Mon Sep 17 00:00:00 2001 From: Paul Rijke Date: Wed, 26 Jun 2024 16:41:04 +0200 Subject: [PATCH] Change return type to parent --- src/Surfnet/StepupRa/RaBundle/Service/RecoveryTokenService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Surfnet/StepupRa/RaBundle/Service/RecoveryTokenService.php b/src/Surfnet/StepupRa/RaBundle/Service/RecoveryTokenService.php index 3ff7cdd8..234bcbc3 100755 --- a/src/Surfnet/StepupRa/RaBundle/Service/RecoveryTokenService.php +++ b/src/Surfnet/StepupRa/RaBundle/Service/RecoveryTokenService.php @@ -20,6 +20,7 @@ use Psr\Log\LoggerInterface; use Surfnet\StepupMiddlewareClient\Identity\Dto\RecoveryTokenSearchQuery; +use Surfnet\StepupMiddlewareClientBundle\Dto\CollectionDto; use Surfnet\StepupMiddlewareClientBundle\Identity\Command\RevokeRegistrantsRecoveryTokenCommand; use Surfnet\StepupMiddlewareClientBundle\Identity\Dto\RecoveryTokenCollection; use Surfnet\StepupMiddlewareClientBundle\Identity\Service\RecoveryTokenService as ApiRecoveryTokenService; @@ -57,7 +58,7 @@ public function revoke(RevokeRecoveryTokenCommand $command): bool return $result->isSuccessful(); } - public function search(SearchRecoveryTokensCommand $command): RecoveryTokenCollection + public function search(SearchRecoveryTokensCommand $command): CollectionDto { $query = new RecoveryTokenSearchQuery($command->pageNumber, $command->actorId);