diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 17eba40a..8364bfa9 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -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\\ but returns array\\\\.$#" - 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 diff --git a/src/Countries/Netherlands.php b/src/Countries/Netherlands.php index 91abc9bd..9c366ad5 100644 --- a/src/Countries/Netherlands.php +++ b/src/Countries/Netherlands.php @@ -24,6 +24,7 @@ protected function allHolidays(int $year): array /** @return array */ protected function variableHolidays(int $year): array { + /** @var CarbonImmutable $koningsDag */ $koningsDag = CarbonImmutable::createFromFormat('Y-m-d', "{$year}-04-27"); if ($koningsDag->isSunday()) {