1 | <?php |
||
18 | class Radio extends AbstractChecked |
||
19 | { |
||
20 | /** |
||
21 | * |
||
22 | * Returns the HTML for the input. |
||
23 | * |
||
24 | * @return string |
||
25 | * |
||
26 | */ |
||
27 | public function __toString() |
||
39 | |||
40 | /** |
||
41 | * |
||
42 | * Returns the HTML for multiple radios. |
||
43 | * |
||
44 | * @return string |
||
45 | * |
||
46 | */ |
||
47 | 2 | protected function multiple() |
|
62 | } |
||
63 |
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using
empty(..)
or! empty(...)
instead.