chore: fix phpstan errors
This commit is contained in:
@@ -156,8 +156,8 @@ class BookingExporter
|
||||
/**
|
||||
* Creates the spreadsheet with participant data.
|
||||
*
|
||||
* @param BookingEditDraft $draft The draft containing form data
|
||||
* @param array $lookups The ID to label lookup arrays
|
||||
* @param BookingEditDraft $draft The draft containing form data
|
||||
* @param array<string, array<int, string>> $lookups The ID to label lookup arrays
|
||||
*/
|
||||
private function createSpreadsheet(BookingEditDraft $draft, array $lookups): Spreadsheet
|
||||
{
|
||||
@@ -203,6 +203,10 @@ class BookingExporter
|
||||
/**
|
||||
* Writes a single participant row to the spreadsheet.
|
||||
*/
|
||||
/**
|
||||
* @param array<string, mixed> $participant
|
||||
* @param array<string, array<int, string>> $lookups
|
||||
*/
|
||||
private function writeParticipantRow(
|
||||
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet,
|
||||
int $row,
|
||||
@@ -298,6 +302,7 @@ class BookingExporter
|
||||
/**
|
||||
* Resolves a single service ID to its label.
|
||||
*/
|
||||
/** @param array<int, string> $lookup */
|
||||
private function resolveService(int|string|null $serviceId, array $lookup): string
|
||||
{
|
||||
if (null === $serviceId || '' === $serviceId) {
|
||||
@@ -312,6 +317,10 @@ class BookingExporter
|
||||
/**
|
||||
* Resolves an array of service IDs to labels, joined by pipe.
|
||||
*/
|
||||
/**
|
||||
* @param list<int|string|null> $serviceIds
|
||||
* @param array<int, string> $lookup
|
||||
*/
|
||||
private function resolveServiceArray(array $serviceIds, array $lookup): string
|
||||
{
|
||||
if (true === empty($serviceIds)) {
|
||||
@@ -332,6 +341,7 @@ class BookingExporter
|
||||
/**
|
||||
* Resolves a room ID to its label.
|
||||
*/
|
||||
/** @param array<int, string> $lookup */
|
||||
private function resolveRoom(?int $roomId, array $lookup): string
|
||||
{
|
||||
if (null === $roomId) {
|
||||
@@ -344,6 +354,7 @@ class BookingExporter
|
||||
/**
|
||||
* Resolves a pickup ID to its label.
|
||||
*/
|
||||
/** @param array<int, string> $lookup */
|
||||
private function resolvePickup(?int $pickupId, array $lookup): string
|
||||
{
|
||||
if (null === $pickupId) {
|
||||
|
||||
Reference in New Issue
Block a user