Skip to content

Commit

Permalink
fix psalm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirtzbruch committed Apr 14, 2023
1 parent 2c2397b commit dd61d07
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/WorkingDayProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ public function getWorkingDaysForPeriod(
}

/**
* Returns holidays indexed by date in format `Y-m-d`, or an empty array if no holiday provider is configured.
*
* @param DateTime $periodStart
* @param DateTime $periodEnd
*
* @return Holiday[]
* @return array<string, Holiday>
*/
private function getHolidays(DateTime $periodStart, DateTime $periodEnd): array
{
Expand Down Expand Up @@ -110,8 +112,8 @@ private function isExcludedDate(DateTimeInterface $iteratorDate): bool
}

/**
* @param DateTimeInterface $iteratorDate
* @param array<string,Holiday> $holidays Array of holidays indexed by date in format `Y-m-d`
* @param DateTimeInterface $iteratorDate
* @param array<string, Holiday> $holidays Array of holidays indexed by date in format `Y-m-d`
*
* @return bool
*/
Expand Down

0 comments on commit dd61d07

Please sign in to comment.