1 | <?php |
||
10 | final class SearchController |
||
11 | { |
||
12 | const ACTION = 'findAction'; |
||
13 | |||
14 | /** @var string */ |
||
15 | private $fqcn; |
||
16 | /** @var CriteriaConfiguratorInterface */ |
||
17 | private $filters = []; |
||
18 | /** @var Selectable */ |
||
19 | private $repository; |
||
20 | |||
21 | /** |
||
22 | * ReadController constructor. |
||
23 | * |
||
24 | * @param string $fqcn |
||
25 | * @param Selectable $repository |
||
26 | * @param CriteriaConfiguratorInterface[] $filters |
||
27 | */ |
||
28 | public function __construct($fqcn, Selectable $repository, array $filters) |
||
34 | |||
35 | /** |
||
36 | * Performs search of entities and returns them |
||
37 | 2 | * |
|
38 | 2 | * @param array $criteria |
|
39 | 2 | * @param array $order |
|
40 | 2 | * @param int $limit |
|
41 | * @param int $offset |
||
42 | * |
||
43 | * @return object[] |
||
44 | * @throws CriteriaConfigurationException |
||
45 | */ |
||
46 | public function findAction(array $criteria, array $order = [], $limit = 10, $offset = 0) |
||
62 | } |
||
63 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..