-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathphpstan.neon
82 lines (76 loc) · 2.27 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
includes:
- phpstan-baseline.neon
parameters:
# Goal of max.
level: 6
paths:
- src/mantle
- mantle.php
ignoreErrors:
-
identifier: trait.unused
-
identifier: staticMethod.resultUnused
-
identifier: require.fileNotFound
-
identifier: requireOnce.fileNotFound
# Will be fixed in PHPStan soon.
-
identifier: function.alreadyNarrowedType
paths:
- src/mantle/support
- src/mantle/testing
-
identifier: missingType.generics
paths:
- src/mantle/contracts
-
identifier: missingType.iterableValue
paths:
- src/mantle/contracts
- src/mantle/facade
- src/mantle/filesystem/class-filesystem.php
- src/mantle/filesystem/class-filesystem-adapter.php
- src/mantle/testing
- src/mantle/testkit
-
identifier: missingType.return
paths:
- src/mantle/contracts
- src/mantle/testing/concerns/trait-core-shim.php
-
identifier: missingType.parameter
paths:
- **/autoload.php
- src/mantle/filesystem/class-filesystem-adapter.php
-
message: "#implements generic interface ArrayAccess but does not specify its types#"
paths:
- src/mantle/testing
- "#Unsafe usage of new static#"
- "#PHPDoc tag @param references unknown parameter#"
- "#interface ArrayAccess but does not specify#"
- "#ReflectionClass does not specify its types#"
- "#ReflectionAttribute does not specify its types#"
- "#ReflectionAttribute but does not specify its types#"
- "#@return is not subtype of template type TKey#"
- "#WP_REST_Request does not specify its types#"
- "#WP_REST_Request but does not specify its types#"
scanFiles:
- %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-stubs.php
scanDirectories:
- tests/fixtures/phpstan
excludePaths:
- src/mantle/blocks
- src/mantle/database/factory
- src/mantle/framework/console/class-hook-usage-command.php
- src/mantle/query-monitor
- src/mantle/queue/providers/wordpress/admin/class-queue-jobs-table.php
- src/mantle/queue/providers/wordpress/admin/class-service-provider.php
- src/mantle/support/interface-enumerable.php
- 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