-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathphpstan.neon
41 lines (36 loc) · 961 Bytes
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
parameters:
# Level 9 is the highest level
level: 5
paths:
- src/mantle
- mantle.php
ignoreErrors:
-
identifier: trait.unused
-
identifier: staticMethod.resultUnused
-
identifier: require.fileNotFound
-
identifier: requireOnce.fileNotFound
-
identifier: function.alreadyNarrowedType
paths:
- src/mantle/support
- src/mantle/testing
- "#Unsafe usage of new static#"
- "#PHPDoc tag @param references unknown parameter#"
- "#@return is not subtype of template type TKey#"
scanFiles:
- %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-stubs.php
scanDirectories:
- tests/fixtures/phpstan
excludePaths:
- src/mantle/database/factory
- src/mantle/blocks
- src/mantle/query-monitor
- src/mantle/testing/class-mock-action.php
- src/mantle/testing/install-wordpress.php
- src/mantle/testing/preload.php
- src/mantle/testing/wordpress-bootstrap.php
- src/mantle/testing/wp-tests-config-sample.php