1 | <?php |
||
10 | class Option extends AbstractElement implements InputInterface, SelectableInterface |
||
11 | { |
||
12 | /** |
||
13 | * @return string |
||
14 | */ |
||
15 | public function getValue() |
||
19 | |||
20 | 2 | public function setValue($value) |
|
24 | |||
25 | /** |
||
26 | * @return DOMElement |
||
27 | */ |
||
28 | public function getSelect() |
||
32 | |||
33 | 1 | public function unselectOthers() |
|
38 | |||
39 | /** |
||
40 | * @param boolean $value |
||
41 | */ |
||
42 | 1 | public function select() |
|
47 | } |
||
48 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.