| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | public function __construct($elementName = null, $elementLabel = null, $options = null, $attributes = null) |
||
| 13 | { |
||
| 14 | parent::__construct($elementName, $elementLabel, $options, $attributes); |
||
| 15 | // Get all languages |
||
| 16 | $themes = api_get_themes(); |
||
| 17 | $this->_options = array(); |
||
| 18 | $this->_values = array(); |
||
|
|
|||
| 19 | $this->addOption('--',''); // no theme select |
||
| 20 | for ($i=0; $i < count($themes[0]); $i++) { |
||
| 21 | $this->addOption($themes[1][$i],$themes[0][$i]); |
||
| 22 | } |
||
| 23 | } |
||
| 24 | } |
||
| 25 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..