Skip to content

Commit

Permalink
Fix PHPDoc tag @var doesn't specify variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Sep 1, 2023
1 parent 76aa0c0 commit a651fdc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/controllers/ReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ public function downloadAction()

switch ($type) {
case 'pdf':
/** @var Hook\PdfexportHook */
Pdfexport::first()->streamPdfFromHtml($this->report->toPdf(), $name);
/** @var Hook\PdfexportHook $exports */
$exports = Pdfexport::first();
$exports->streamPdfFromHtml($this->report->toPdf(), $name);
exit;
case 'csv':
$response = $this->getResponse();
Expand Down

0 comments on commit a651fdc

Please sign in to comment.