Skip to content

Commit

Permalink
fix typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Feb 8, 2024
1 parent 4dfcad3 commit aefc29b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,3 @@ parameters:
count: 1
path: src/Holidays.php

-
message: "#^Property Spatie\\\\Holidays\\\\Holidays\\:\\:\\$holidays \\(array\\<string, Carbon\\\\CarbonImmutable\\>\\) does not accept array\\<string, Carbon\\\\CarbonImmutable\\|string\\>\\.$#"
count: 1
path: src/Holidays.php
2 changes: 1 addition & 1 deletion src/Countries/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ abstract public function countryCode(): string;
/** @return array<string, string|CarbonImmutable> */
abstract protected function allHolidays(int $year): array;

/** @return array<string, CarbonImmutable|string> */
/** @return array<string, CarbonImmutable> */
public function get(int $year, ?string $locale = null): array
{
$this->ensureYearCanBeCalculated($year);
Expand Down

0 comments on commit aefc29b

Please sign in to comment.