Auto commit for release 'develop' on 2024-05-23

This commit is contained in:
github-actions
2024-05-23 05:10:54 +02:00
parent 477524a8ae
commit 76df3d5f33
18 changed files with 2116 additions and 2140 deletions

View File

@@ -44,9 +44,6 @@ class ChartData
}
/**
* @param array $data
*
* @return void
* @throws FireflyException
*/
public function add(array $data): void
@@ -57,7 +54,7 @@ class ChartData
if (array_key_exists('native_currency_id', $data)) {
$data['native_currency_id'] = (string) $data['native_currency_id'];
}
$required = ['start', 'date', 'end', 'entries', 'native_entries'];
$required = ['start', 'date', 'end', 'entries', 'native_entries'];
foreach ($required as $field) {
if (!array_key_exists($field, $data)) {
throw new FireflyException(sprintf('Data-set is missing the "%s"-variable.', $field));
@@ -66,5 +63,4 @@ class ChartData
$this->series[] = $data;
}
}