Skip to content

Commit ff6bdb1

Browse files
authored
Refactor emailTo request handling
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 85abe74 commit ff6bdb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jobs/DataTableExportJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function handle(): void
198198
Storage::disk($this->getS3Disk())->putFileAs('', (new File($path)), $filename);
199199
}
200200

201-
$emailTo = request('emailTo');
201+
$emailTo = request()->emailTo;
202202
if ($emailTo && is_string($emailTo)) {
203203
$data = ['email' => urldecode($emailTo), 'path' => $path];
204204
$this->sendResults($data);

0 commit comments

Comments
 (0)