1 | <?php |
||
10 | class Sapi3UserPermissionMatcher implements UserPermissionMatcherInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var UserConstraintsReadRepositoryInterface |
||
14 | */ |
||
15 | private $userConstraintsReadRepository; |
||
16 | |||
17 | /** |
||
18 | * @var SearchQueryFactoryInterface |
||
19 | */ |
||
20 | private $searchQueryFactory; |
||
21 | |||
22 | /** |
||
23 | * @var SearchServiceInterface |
||
24 | */ |
||
25 | private $searchService; |
||
26 | |||
27 | /** |
||
28 | * ConstraintsOfferFilter constructor. |
||
29 | * @param UserConstraintsReadRepositoryInterface $userConstraintsReadRepository |
||
30 | * @param SearchQueryFactoryInterface $searchQueryFactory |
||
31 | * @param SearchServiceInterface $searchService |
||
32 | */ |
||
33 | public function __construct( |
||
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | public function itMatchesOffer( |
||
68 | } |
||
69 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: