From a29fe7b4f02e53a3b8d7e3c8e244339e5fcb16e0 Mon Sep 17 00:00:00 2001 From: MRui Date: Mon, 1 Dec 2025 15:13:09 +0000 Subject: [PATCH] Fix request action access in render method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.`` --- src/WithExportQueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WithExportQueue.php b/src/WithExportQueue.php index c0ec660..486f194 100644 --- a/src/WithExportQueue.php +++ b/src/WithExportQueue.php @@ -20,7 +20,7 @@ trait WithExportQueue */ public function render(?string $view = null, array $data = [], array $mergeData = []) { - if (request()->ajax() && request('action') == 'exportQueue') { + if (request()->ajax() && request()->action == 'exportQueue') { return $this->exportQueue(); }