@@ -4,7 +4,6 @@ discard block |
||
4 | 4 | namespace SlayerBirden\DataFlowServer\Authentication\Controller; |
5 | 5 | |
6 | 6 | use Doctrine\ORM\EntityManager; |
7 | -use Doctrine\ORM\ORMException; |
|
8 | 7 | use Psr\Http\Message\ResponseInterface; |
9 | 8 | use Psr\Http\Message\ServerRequestInterface; |
10 | 9 | use Psr\Http\Server\MiddlewareInterface; |
@@ -13,7 +12,6 @@ discard block |
||
13 | 12 | use SlayerBirden\DataFlowServer\Authentication\Exception\PermissionDeniedException; |
14 | 13 | use SlayerBirden\DataFlowServer\Authentication\TokenManagerInterface; |
15 | 14 | use SlayerBirden\DataFlowServer\Doctrine\Middleware\ResourceMiddlewareInterface; |
16 | -use SlayerBirden\DataFlowServer\Domain\Entities\ClaimedResourceInterface; |
|
17 | 15 | use SlayerBirden\DataFlowServer\Domain\Entities\User; |
18 | 16 | use SlayerBirden\DataFlowServer\Notification\DangerMessage; |
19 | 17 | use SlayerBirden\DataFlowServer\Notification\SuccessMessage; |
@@ -150,7 +150,7 @@ |
||
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
153 | - * @param Collection|Grant[] $grants |
|
153 | + * @param Collection $grants |
|
154 | 154 | */ |
155 | 155 | public function setGrants(Collection $grants): void |
156 | 156 | { |
@@ -115,7 +115,7 @@ |
||
115 | 115 | * @param Token $token |
116 | 116 | * @param array $resources |
117 | 117 | * @param User $user |
118 | - * @return ArrayCollection|Grant[] |
|
118 | + * @return \Doctrine\Common\Collections\Collection |
|
119 | 119 | * @throws PermissionDeniedException |
120 | 120 | * @throws ORMException |
121 | 121 | */ |