-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
34 lines (33 loc) · 1.59 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
24
25
26
27
28
29
30
31
32
33
34
#$ composer update --optimize-autoloader
#$ vendor/bin/phpstan analyze
includes:
# @see https://github.com/phpstan/phpstan-src/blob/master/conf/bleedingEdge.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
# Include this extension
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
# bootstrap: phpstan-bootstrap.php
level: max
checkMissingIterableValueType: false
inferPrivatePropertyTypeFromConstructor: true
paths:
- %currentWorkingDirectory%/src/
excludes_analyse:
- %currentWorkingDirectory%/tests
scanFiles:
scanDirectories:
- %currentWorkingDirectory%/src/
ignoreErrors:
- '#Call to method get\(\) on an unknown class OWC\\Persberichten\\Base\\Config\.#'
# Uses func_get_args()
# Fixed in WordPress 5.3
- '#Function register_extended_taxonomy not found\.#'
#- '#^Function do_action(_ref_array)? invoked with [3456] parameters, 1-2 required\.$#'
#- '#^Function current_user_can invoked with 2 parameters, 1 required\.$#'
#- '#^Function add_query_arg invoked with [123] parameters?, 0 required\.$#'
#- '#^Function wp_sprintf invoked with [23456] parameters, 1 required\.$#'
#- '#^Function add_post_type_support invoked with [345] parameters, 2 required\.$#'
#- '#^Function ((get|add)_theme_support|current_theme_supports) invoked with [2345] parameters, 1 required\.$#'
# https://core.trac.wordpress.org/ticket/43304
# WP-CLI accepts a class as callable
# Please consider commenting ignores: issue URL or reason for ignoring