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.dist
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,23 @@ parameters:
4
4
- %currentWorkingDirectory%/src
5
5
- %currentWorkingDirectory%/tests
6
6
7
+
exceptions:
8
+
check:
9
+
missingCheckedExceptionInThrows: true
10
+
tooWideThrowType: true
11
+
uncheckedExceptionClasses:
12
+
- RuntimeException
13
+
7
14
ignoreErrors:
8
15
# There's no other way to test-pass without assertions while counting it towards coverage https://github.com/sebastianbergmann/phpunit/issues/3016
9
16
- '~Call to static method PHPUnit\\Framework\\Assert::assertTrue\(\) with true will always evaluate to true~'
10
17
11
18
# Adds unnecessary maintanence overhead. We rather rely on PHPStan telling us the method returns unhandled FALSE
12
19
- "~Class DateTime(Immutable)? is unsafe to use. Its methods can return FALSE instead of throwing an exception. Please add 'use Safe\\\\DateTime(Immutable)?;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library~"
13
20
21
+
# No need to have @throws in some phpunit related methods
22
+
- message: "~Method SimPod\\\\ClickHouseClient\\\\Tests\\\\.+?Test(CaseBase)?::(test.+?|provider.+?|setUp(BeforeClass)?|tearDown|setupClickHouseClient|tearDownDataBase)\\(\\) throws checked exception .+? but it's missing from the PHPDoc @throws tag~"
0 commit comments