Skip to content

Commit 900147d

Browse files
committed
Update PHPStan exceptions
1 parent 726f64b commit 900147d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

phpstan.neon

+10-3
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ parameters:
2828
- '#should return (\S*)(static|\$this)\(Carbon\\CarbonImmutable\)(\|null)? but returns Carbon\\Carbon(Immutable|Interface)(\|null)?\.$#'
2929
- '#should return (\S*)\$this\(Carbon\\CarbonInterval\)(\|null)? but returns static\(Carbon\\CarbonInterval\)(\|null)?\.$#'
3030
- '#should return (\S*)static\(Carbon\\CarbonInterval\)(\|null)? but returns Carbon\\CarbonInterval(\|null)?\.$#'
31-
- '#^Access to an undefined property DatePeriod::\$include_end_date\.$#'
32-
- '#^Call to an undefined method DatePeriod::[a-zA-Z]+\(\)\.$#'
3331
- '#^Call to an undefined method DateInterval::(spec|optimize)\(\)\.$#'
3432
- '#^Property Carbon\\Carbon::\$timezone \(Carbon\\CarbonTimeZone\) does not accept string\.$#'
3533
- '#^Method class@anonymous/tests/Carbon/TestingAidsTest\.php:\d+::modify\(\) should return class@anonymous/tests/Carbon/TestingAidsTest\.php:\d+ but returns \(DateTimeImmutable\|false\)\.$#'
@@ -58,9 +56,18 @@ parameters:
5856
paths:
5957
- tests/CarbonImmutable/GettersTest.php
6058
-
61-
message: '#^Access to an undefined property Carbon\\CarbonInterval::\$tz_?name\.$#'
59+
message: '#^Access to an undefined property Carbon\\CarbonInterval::\$tz_?[Nn]ame\.$#'
6260
paths:
61+
- tests/CarbonInterval/GettersTest.php
6362
- tests/CarbonInterval/SettersTest.php
63+
-
64+
message: '#^Access to an undefined property Carbon\\CarbonPeriod::\$(include)?(Start|End)Date\.$#'
65+
paths:
66+
- tests/CarbonPeriod/GettersTest.php
67+
-
68+
message: '#^Access to protected property Carbon\\CarbonPeriod::\$endDate\.$#'
69+
paths:
70+
- tests/CarbonPeriod/GettersTest.php
6471
-
6572
message: '#^Cannot access property \$locale on Carbon\\CarbonPeriod\|string\.$#'
6673
paths:

0 commit comments

Comments
 (0)