chg: [internal] Convert array to const

pull/7577/head
Jakub Onderka 2021-07-27 19:17:05 +02:00
parent 5de4e64bd6
commit 7f16e27b25
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ class Attribute extends AppModel
'hostname|port',
);
public $captureFields = array(
const CAPTURE_FIELDS = array(
'event_id',
'category',
'type',
@ -2885,7 +2885,7 @@ class Attribute extends AppModel
$attribute['distribution'] = $this->defaultDistribution();
}
$params = array(
'fieldList' => $this->captureFields
'fieldList' => self::CAPTURE_FIELDS,
);
if (!empty($parentEvent)) {
$params['parentEvent'] = $parentEvent;