Skip to content

Commit

Permalink
Update PHPStan exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Jul 21, 2024
1 parent 726f64b commit 900147d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ parameters:
- '#should return (\S*)(static|\$this)\(Carbon\\CarbonImmutable\)(\|null)? but returns Carbon\\Carbon(Immutable|Interface)(\|null)?\.$#'
- '#should return (\S*)\$this\(Carbon\\CarbonInterval\)(\|null)? but returns static\(Carbon\\CarbonInterval\)(\|null)?\.$#'
- '#should return (\S*)static\(Carbon\\CarbonInterval\)(\|null)? but returns Carbon\\CarbonInterval(\|null)?\.$#'
- '#^Access to an undefined property DatePeriod::\$include_end_date\.$#'
- '#^Call to an undefined method DatePeriod::[a-zA-Z]+\(\)\.$#'
- '#^Call to an undefined method DateInterval::(spec|optimize)\(\)\.$#'
- '#^Property Carbon\\Carbon::\$timezone \(Carbon\\CarbonTimeZone\) does not accept string\.$#'
- '#^Method class@anonymous/tests/Carbon/TestingAidsTest\.php:\d+::modify\(\) should return class@anonymous/tests/Carbon/TestingAidsTest\.php:\d+ but returns \(DateTimeImmutable\|false\)\.$#'
Expand Down Expand Up @@ -58,9 +56,18 @@ parameters:
paths:
- tests/CarbonImmutable/GettersTest.php
-
message: '#^Access to an undefined property Carbon\\CarbonInterval::\$tz_?name\.$#'
message: '#^Access to an undefined property Carbon\\CarbonInterval::\$tz_?[Nn]ame\.$#'
paths:
- tests/CarbonInterval/GettersTest.php
- tests/CarbonInterval/SettersTest.php
-
message: '#^Access to an undefined property Carbon\\CarbonPeriod::\$(include)?(Start|End)Date\.$#'
paths:
- tests/CarbonPeriod/GettersTest.php
-
message: '#^Access to protected property Carbon\\CarbonPeriod::\$endDate\.$#'
paths:
- tests/CarbonPeriod/GettersTest.php
-
message: '#^Cannot access property \$locale on Carbon\\CarbonPeriod\|string\.$#'
paths:
Expand Down

0 comments on commit 900147d

Please sign in to comment.