-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
30 lines (30 loc) · 895 Bytes
/
phpstan.neon.dist
File metadata and controls
30 lines (30 loc) · 895 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
includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: max
paths:
- plugin.php
- inc
scanFiles:
- plugin.php
- inc/namespace.php
- inc/taxonomy.php
- inc/class-users-controller.php
- inc/template.php
- inc/admin.php
- inc/cli/namespace.php
- inc/cli/class-migrate-command.php
- tests/phpunit/includes/testcase.php
- tests/phpunit/includes/email-testcase.php
- tests/phpunit/includes/feed-testcase.php
- tests/phpunit/includes/restapi-testcase.php
scanDirectories:
- inc
- vendor/wp-phpunit/wp-phpunit/includes
- vendor/wp-cli/wp-cli
ignoreErrors:
# Uses func_get_args()
- '#^Function apply_filters invoked with [34567] parameters, 2 required\.$#'
# Cant declare types always because extended
# core parent class methods don't
checkGenericClassInNonGenericObjectType: false