-
Notifications
You must be signed in to change notification settings - Fork 6
/
phpstan.neon.dist
23 lines (23 loc) · 1.11 KB
/
phpstan.neon.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: 5
inferPrivatePropertyTypeFromConstructor: true
scanFiles:
- tests/bootstrap.php
- includes/functions.php
scanDirectories:
- includes/
paths:
- includes/
ignoreErrors:
# Filtered value can return a bool, so this error is incorrect.
- '#^Else branch is unreachable because ternary operator condition is always true\.$#'
# Method can return bool via filter.
- '#^Method Disable_Blog_Public::get_disabled_xmlrpc_methods\(\) never returns bool so it can be removed from the return type\.#'
# errors we don't care about.
- '#^Property Disable_Blog_Public::\$plugin_name is never read, only written\.#'
- '#^Property Disable_Blog_Public::\$version is never read, only written\.#'
# Implode is correctly used in get_comments_count for supported PHP versions of this plugin.
- '#^Parameter \#2 \$array of function implode expects array\<string\>, array\<array\|string\> given\.#'
- '#^Constant DWPB_URL not found\.#'