Skip to content

Commit

Permalink
Added modify call on CarbonImmutable to PHPStan baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickomeara committed Jan 22, 2024
1 parent be7f5e6 commit 3039c55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
parameters:
ignoreErrors:
-
message: "#^Cannot call method modify\\(\\) on Carbon\\\\CarbonImmutable\\|false\\.$#"
count: 1
path: src/Countries/Australia.php

-
message: "#^Argument of an invalid type array\\<int, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
Expand Down
2 changes: 1 addition & 1 deletion src/Countries/Australia.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected function variableHolidays(int $year): array
'Canberra Day' => CarbonImmutable::parse("second monday of march {$year}"),
'Easter Saturday' => $easter->subDay(),
'Easter Sunday' => $easter,
'Reconciliation Day' => CarbonImmutable::create($year, 5, 27)->modify("monday"),
'Reconciliation Day' => CarbonImmutable::create($year, 5, 27)->modify('monday'),
$this->sovereignBirthdayKey($year) => CarbonImmutable::parse("second monday of june {$year}"),
'Labour Day' => CarbonImmutable::parse("first monday of october {$year}"),
],
Expand Down

0 comments on commit 3039c55

Please sign in to comment.