-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
45 lines (45 loc) · 1.17 KB
/
phpstan.neon.dist
File metadata and controls
45 lines (45 loc) · 1.17 KB
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
parameters:
level: 9
paths:
- php/commands
- php/WP_CLI
- php/boot-fs.php
- php/bootstrap.php
- php/class-wp-cli.php
- php/class-wp-cli-command.php
- php/dispatcher.php
- php/utils.php
- php/utils-wp.php
- php/wp-cli.php
- tests
excludePaths:
- php/WP_CLI/ComposerIO.php
- php/WP_CLI/PackageManagerEventSubscriber.php
- tests/data
scanDirectories:
- bundle/rmccue/requests
- vendor/wp-cli/wp-cli-tests
scanFiles:
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
- utils/phpstan/scan-files.php
- php/boot-fs.php
treatPhpDocTypesAsCertain: false
dynamicConstantNames:
- WP_CLI_ROOT
- WP_DEBUG
- WP_DEBUG_LOG
- WP_DEBUG_DISPLAY
strictRules:
uselessCast: true
closureUsesThis: true
overwriteVariablesWithLoop: true
matchingInheritedMethodNames: true
numericOperandsInArithmeticOperators: true
switchConditionsMatchingType: true
ignoreErrors:
- identifier: missingType.iterableValue
- identifier: missingType.property
- identifier: missingType.parameter
- identifier: missingType.return
- identifier: function.deprecated
path: tests