1 | <?php |
||
14 | abstract class AbstractEntityValidator extends AbstractValidator |
||
15 | { |
||
16 | /** |
||
17 | * @var object |
||
18 | */ |
||
19 | protected $finder; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $findMethod; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $excluded = []; |
||
30 | |||
31 | /** |
||
32 | * @var DataMapperManagerInterface |
||
33 | */ |
||
34 | protected $dataMapperManager; |
||
35 | |||
36 | /** |
||
37 | * @param array $options |
||
38 | * @param DataMapperManagerInterface $dataMapperManager |
||
39 | */ |
||
40 | 14 | public function __construct(array $options = null, DataMapperManagerInterface $dataMapperManager = null) |
|
77 | |||
78 | /** |
||
79 | * @return mixed |
||
80 | */ |
||
81 | 1 | public function getFindMethod() |
|
85 | |||
86 | /** |
||
87 | * @param mixed $findMethod |
||
88 | */ |
||
89 | 10 | public function setFindMethod($findMethod) |
|
93 | |||
94 | /** |
||
95 | * @return object |
||
96 | */ |
||
97 | 2 | public function getFinder() |
|
101 | |||
102 | /** |
||
103 | * @param object $finder |
||
104 | */ |
||
105 | 10 | public function setFinder($finder) |
|
109 | |||
110 | /** |
||
111 | * @return array |
||
112 | */ |
||
113 | 1 | public function getExcluded() |
|
117 | |||
118 | /** |
||
119 | * @param mixed $excluded |
||
120 | */ |
||
121 | 1 | public function setExcluded($excluded) |
|
125 | |||
126 | /** |
||
127 | * @param $value |
||
128 | * |
||
129 | * @return array |
||
130 | */ |
||
131 | 5 | protected function findEntity($value) |
|
141 | } |
||
142 |
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: