for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/* For licensing terms, see /license.txt */
/**
* A dropdownlist with all themes to use with QuickForm
*/
class SelectTheme extends HTML_QuickForm_select
{
* Class constructor
public function __construct($elementName = null, $elementLabel = null, $options = null, $attributes = null)
parent::__construct($elementName, $elementLabel, $options, $attributes);
// Get all languages
$themes = api_get_themes();
$this->_options = array();
$this->_values = array();
array()
array
string
$_values
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..
$this->addOption('--',''); // no theme select
for ($i=0; $i < count($themes[0]); $i++) {
$this->addOption($themes[1][$i],$themes[0][$i]);
}
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..