Travis build error fix
This commit is contained in:
parent
079d08e94a
commit
8f74f26fd4
@ -128,7 +128,7 @@ class Field extends AbstractElement
|
|||||||
public function setProperties($properties = array())
|
public function setProperties($properties = array())
|
||||||
{
|
{
|
||||||
if (is_array($properties)) {
|
if (is_array($properties)) {
|
||||||
foreach ($properties as $propkey => $propval) {
|
foreach (array_keys($properties) as $propkey) {
|
||||||
if (!(array_key_exists($propkey, $this->fieldsArray[$this->type]['properties']))) {
|
if (!(array_key_exists($propkey, $this->fieldsArray[$this->type]['properties']))) {
|
||||||
throw new \InvalidArgumentException("Invalid property");
|
throw new \InvalidArgumentException("Invalid property");
|
||||||
}
|
}
|
||||||
@ -157,7 +157,7 @@ class Field extends AbstractElement
|
|||||||
public function setOptions($options = array())
|
public function setOptions($options = array())
|
||||||
{
|
{
|
||||||
if (is_array($options)) {
|
if (is_array($options)) {
|
||||||
foreach ($options as $optionkey => $optionval) {
|
foreach (array_keys($options) as $optionkey) {
|
||||||
if (!(array_key_exists($optionkey, $this->fieldsArray[$this->type]['options']))) {
|
if (!(array_key_exists($optionkey, $this->fieldsArray[$this->type]['options']))) {
|
||||||
throw new \InvalidArgumentException("Invalid option");
|
throw new \InvalidArgumentException("Invalid option");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user