Fixed static analysis issue

This commit is contained in:
Jan Böhmer 2023-12-06 00:00:32 +01:00
parent a6d508205b
commit 963079afbf

View file

@ -67,8 +67,10 @@ class ErrorDataTable implements DataTableTypeInterface
//Build the array containing data
$data = [];
$n = 0;
foreach ($options['errors'] as $error) {
$data[] = ['error' => $error];
$data['error_' . $n] = ['error' => $error];
$n++;
}
$dataTable->createAdapter(ArrayAdapter::class, $data);