-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
31 lines (31 loc) · 992 Bytes
/
phpstan.neon.dist
File metadata and controls
31 lines (31 loc) · 992 Bytes
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
parameters:
level: 6
paths:
- classes/
- inc/
- content-control.php
- uninstall.php
scanDirectories:
- bin/
- classes/
- inc/
scanFiles:
- content-control.php
- uninstall.php
bootstrapFiles:
- bin/phpstan-bootstrap.php
stubFiles:
- bin/stubs/elementor.php
- bin/stubs/query-monitor.php
- vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php
excludePaths:
- tests/
dynamicConstantNames:
- 'IS_WPCOM'
- 'WP_CLI'
- 'CONTENT_CONTROL_LICENSE_KEY'
- 'CONTENT_CONTROL_DISABLE_LOGGING'
- 'CONTENT_CONTROL_UPGRADE_DEBUG_LOGGING'
ignoreErrors:
- '#Method ContentControl\\Controllers\\Admin\\WidgetEditor::fields\(\) has parameter \$widget with generic class WP_Widget but does not specify its types: T#'
- '#Path in require_once\(\) ".*wp-admin/includes/.*" is not a file or it does not exist#'