mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed test issues
This commit is contained in:
parent
3c5a96ba5c
commit
1becde537b
2 changed files with 3 additions and 4 deletions
|
@ -30,9 +30,8 @@ class ColumnSortHelper
|
|||
{
|
||||
private array $columns = [];
|
||||
|
||||
public function __construct(LoggerInterface $logger)
|
||||
public function __construct(private readonly LoggerInterface $logger)
|
||||
{
|
||||
$this->logger = $logger;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -111,7 +110,7 @@ class ColumnSortHelper
|
|||
|
||||
//and the remaining non-visible columns
|
||||
foreach ($this->columns as $col_id => $col_data) {
|
||||
if (in_array($col_id, $processed_columns)) {
|
||||
if (in_array($col_id, $processed_columns, true)) {
|
||||
// column already processed
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -255,7 +255,7 @@ final class PartsDataTable implements DataTableTypeInterface
|
|||
"TABLE_PARTS_DEFAULT_COLUMNS");
|
||||
|
||||
$dataTable->addOrderBy('name')
|
||||
->createAdapter(TwoStepORMAdapater::class, [
|
||||
->createAdapter(TwoStepORMAdapter::class, [
|
||||
'filter_query' => $this->getFilterQuery(...),
|
||||
'detail_query' => $this->getDetailQuery(...),
|
||||
'entity' => Part::class,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue