You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: phpstan.neon
+10-3
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,6 @@ parameters:
28
28
- '#should return (\S*)(static|\$this)\(Carbon\\CarbonImmutable\)(\|null)? but returns Carbon\\Carbon(Immutable|Interface)(\|null)?\.$#'
29
29
- '#should return (\S*)\$this\(Carbon\\CarbonInterval\)(\|null)? but returns static\(Carbon\\CarbonInterval\)(\|null)?\.$#'
30
30
- '#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]+\(\)\.$#'
33
31
- '#^Call to an undefined method DateInterval::(spec|optimize)\(\)\.$#'
34
32
- '#^Property Carbon\\Carbon::\$timezone \(Carbon\\CarbonTimeZone\) does not accept string\.$#'
35
33
- '#^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:
58
56
paths:
59
57
- tests/CarbonImmutable/GettersTest.php
60
58
-
61
-
message:'#^Access to an undefined property Carbon\\CarbonInterval::\$tz_?name\.$#'
59
+
message:'#^Access to an undefined property Carbon\\CarbonInterval::\$tz_?[Nn]ame\.$#'
62
60
paths:
61
+
- tests/CarbonInterval/GettersTest.php
63
62
- 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
64
71
-
65
72
message:'#^Cannot access property \$locale on Carbon\\CarbonPeriod\|string\.$#'
0 commit comments