Skip to content
Snippets Groups Projects

Issue #3417994: Do not set properties that do not exist in RestResponseDescribe

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -148,9 +148,10 @@ class RestResponseDescribe extends RestResponse {
@@ -148,9 +148,10 @@ class RestResponseDescribe extends RestResponse {
}
}
foreach ($response->data as $key => $value) {
foreach ($response->data as $key => $value) {
if ($key == 'fields') {
if ($key == 'fields' || !property_exists($this, $key)) {
continue;
continue;
}
}
 
$this->$key = $value;
$this->$key = $value;
}
}
$this->data = $response->data;
$this->data = $response->data;
Loading