Skip to content

Commit 80d18e2

Browse files
author
jcrombez
committed
fix sf 8 compatibility
1 parent 6c45ee2 commit 80d18e2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/Grid/GridBuilder.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function reset()
8989
public function setTheme(string $theme): self
9090
{
9191
$this->theme = $theme;
92-
92+
9393
return $this;
9494
}
9595

@@ -117,7 +117,7 @@ public function addColumn(
117117

118118
return $this;
119119
}
120-
120+
121121
public function getColumns(): array
122122
{
123123
return array_filter($this->columns, fn(Column $column) => $column->enabled);
@@ -134,7 +134,7 @@ public function getColumn(string $name): Column
134134
throw new \Exception("Column named {$name} not found.");
135135
}
136136

137-
public function removeColumn(string $name): self
137+
public function removeColumn(string|TranslatableMessage $name): self
138138
{
139139
foreach ($this->columns as $key => $column) {
140140
if ($column->name === $name) {
@@ -181,7 +181,7 @@ private function applySort(): void
181181
if ($column->sortable !== $sortBy) {
182182
continue;
183183
}
184-
184+
185185
if (is_callable($column->sortableQuery)) {
186186
$sortCallback = $column->sortableQuery;
187187
$sortCallback($this->queryBuilder, $direction);
@@ -300,9 +300,9 @@ public function getGrid(bool $forceRecreate = false): Grid
300300
$this->request,
301301
$pagination,
302302
$this->theme,
303-
$this::class,
304303
$this->batchActions,
305304
$this->batchMethod,
305+
$this::class,
306306
$this->rowAttributesCallback,
307307
);
308308
}

0 commit comments

Comments
 (0)