1 | <?php |
||
26 | class RaCandidateService extends AbstractSearchService |
||
27 | { |
||
28 | /** |
||
29 | * @var RaCandidateRepository |
||
30 | */ |
||
31 | private $raCandidateRepository; |
||
32 | |||
33 | /** |
||
34 | * @param RaCandidateRepository $raCandidateRepository |
||
35 | */ |
||
36 | public function __construct(RaCandidateRepository $raCandidateRepository) |
||
40 | |||
41 | /** |
||
42 | * @param RaCandidateQuery $query |
||
43 | * @return \Pagerfanta\Pagerfanta |
||
44 | */ |
||
45 | public function search(RaCandidateQuery $query) |
||
53 | |||
54 | /** |
||
55 | * @param RaCandidateQuery $query |
||
56 | * @return array |
||
57 | */ |
||
58 | public function getFilterOptions(RaCandidateQuery $query) |
||
62 | |||
63 | /** |
||
64 | * @param string $identityId |
||
65 | * @return null|array |
||
66 | */ |
||
67 | public function findOneByIdentityId($identityId) |
||
71 | |||
72 | /** |
||
73 | * Set the RA candidates USE RA(A) institutions on the Identity he is going to promote. |
||
74 | */ |
||
75 | public function setUseRaInstitutionsOnRaCandidate(InstitutionAuthorizationContext $actor, array $raCandidate) |
||
84 | } |
||
85 |
There are different options of fixing this problem.
If you want to be on the safe side, you can add an additional type-check:
If you are sure that the expression is traversable, you might want to add a doc comment cast to improve IDE auto-completion and static analysis:
Mark the issue as a false-positive: Just hover the remove button, in the top-right corner of this issue for more options.