1 | <?php |
||
13 | class ObjectSelect extends SelectElement |
||
14 | { |
||
15 | /** @var Proxy */ |
||
16 | protected $proxy; |
||
17 | |||
18 | 6 | public function getProxy() : Proxy |
|
26 | |||
27 | /** |
||
28 | * @param array|Traversable $options |
||
29 | * |
||
30 | * {@inheritDoc} |
||
31 | */ |
||
32 | public function setOptions($options) : self |
||
38 | |||
39 | /** |
||
40 | * @param mixed $value |
||
41 | * |
||
42 | * {@inheritDoc} |
||
43 | */ |
||
44 | 1 | public function setOption($key, $value) : self |
|
50 | |||
51 | /** |
||
52 | * {@inheritDoc} |
||
53 | */ |
||
54 | 3 | public function setValue($value) |
|
72 | |||
73 | /** |
||
74 | * {@inheritDoc} |
||
75 | */ |
||
76 | 2 | public function getValueOptions() |
|
90 | } |
||
91 |
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: