Skip to content

Commit

Permalink
Fixed education export participant type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Oct 8, 2023
1 parent 498268f commit 6fce480
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/model/Excel/ExcelService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Model\DTO\Cashbook\Chit;
use Model\DTO\Instructor\InstructorEnriched;
use Model\DTO\Participant\Participant;
use Model\DTO\Participant\ParticipatingPerson;
use Model\Excel\Builders\CashbookWithCategoriesBuilder;
use Model\Excel\Range;
use PhpOffice\PhpSpreadsheet\Exception;
Expand Down Expand Up @@ -62,7 +63,7 @@ public function getCampParticipants(array $participantsDTO): Spreadsheet
return $spreadsheet;
}

/** @param Participant[] $participantsDTO */
/** @param ParticipatingPerson[] $participantsDTO */
public function getEducationParticipants(array $participantsDTO): Spreadsheet
{
$spreadsheet = $this->getNewFile();
Expand Down Expand Up @@ -121,7 +122,7 @@ public function addItemsExport(Spreadsheet $spreadsheetWithActiveSheet, array $c
return $spreadsheetWithActiveSheet;
}

/** @param Participant[] $data */
/** @param ParticipatingPerson[] $data */
protected function setSheetParticipantEducation(Worksheet $sheet, array $data): void
{
$sheet->setCellValue('A1', 'P.č.')
Expand Down

0 comments on commit 6fce480

Please sign in to comment.