1 | <?php |
||
9 | class LabelElement extends ValueElement |
||
10 | { |
||
11 | /** |
||
12 | * Creates a new Label |
||
13 | * |
||
14 | * @param string $label This is is raw HTML and will not be escaped |
||
15 | */ |
||
16 | public function __construct($label) |
||
20 | |||
21 | /** |
||
22 | * The HTML representation of this element |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | public function toHTML() |
||
30 | } |
||
31 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.