Skip to content

Commit 8ffc945

Browse files
authored
Refactor searchPanes retrieval from request
Fixes deprecated the get() Method according to what´s new since Symfony 7.4 - Request Class Improvements This fixes the deprecated method and warning log entries like ``WARNING: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.``
1 parent acd1e99 commit 8ffc945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryDataTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ public function addColumn($name, $content, $order = false): static
809809
protected function searchPanesSearch(): void
810810
{
811811
/** @var string[] $columns */
812-
$columns = $this->request->get('searchPanes', []);
812+
$columns = (array)$this->request->searchPanes;
813813

814814
foreach ($columns as $column => $values) {
815815
if ($this->isBlacklisted($column)) {

0 commit comments

Comments
 (0)