File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public function getType()
128
128
public function setProperties ($ properties = array ())
129
129
{
130
130
if (is_array ($ properties )) {
131
- foreach ($ properties as $ propkey => $ propval ) {
131
+ foreach (array_keys ( $ properties) as $ propkey ) {
132
132
if (!(array_key_exists ($ propkey , $ this ->fieldsArray [$ this ->type ]['properties ' ]))) {
133
133
throw new \InvalidArgumentException ("Invalid property " );
134
134
}
@@ -157,7 +157,7 @@ public function getProperties()
157
157
public function setOptions ($ options = array ())
158
158
{
159
159
if (is_array ($ options )) {
160
- foreach ($ options as $ optionkey => $ optionval ) {
160
+ foreach (array_keys ( $ options) as $ optionkey ) {
161
161
if (!(array_key_exists ($ optionkey , $ this ->fieldsArray [$ this ->type ]['options ' ]))) {
162
162
throw new \InvalidArgumentException ("Invalid option " );
163
163
}
You can’t perform that action at this time.
0 commit comments