Skip to content

Commit

Permalink
reduce baseline errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Jan 22, 2024
1 parent 4b398f1 commit 48bb3ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
15 changes: 0 additions & 15 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,6 @@ parameters:
count: 1
path: src/Countries/Mexico.php

-
message: "#^Cannot call method isSunday\\(\\) on Carbon\\\\CarbonImmutable\\|false\\.$#"
count: 1
path: src/Countries/Netherlands.php

-
message: "#^Cannot call method subDay\\(\\) on Carbon\\\\CarbonImmutable\\|false\\.$#"
count: 1
path: src/Countries/Netherlands.php

-
message: "#^Method Spatie\\\\Holidays\\\\Countries\\\\Netherlands\\:\\:variableHolidays\\(\\) should return array\\<string, Carbon\\\\CarbonImmutable\\> but returns array\\<string, Carbon\\\\CarbonImmutable\\|false\\>\\.$#"
count: 1
path: src/Countries/Netherlands.php

-
message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(Carbon\\\\CarbonImmutable\\)\\: mixed\\)\\|null, Closure\\(string\\)\\: non\\-falsy\\-string given\\.$#"
count: 1
Expand Down
1 change: 1 addition & 0 deletions src/Countries/Netherlands.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ protected function allHolidays(int $year): array
/** @return array<string, CarbonImmutable> */
protected function variableHolidays(int $year): array
{
/** @var CarbonImmutable $koningsDag */
$koningsDag = CarbonImmutable::createFromFormat('Y-m-d', "{$year}-04-27");

if ($koningsDag->isSunday()) {
Expand Down

0 comments on commit 48bb3ba

Please sign in to comment.