forked from Automattic/newspack-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
48 lines (47 loc) · 2.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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#$ vendor/bin/phpstan analyse
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
# TODO level: max
level: 4
inferPrivatePropertyTypeFromConstructor: true
paths:
- %currentWorkingDirectory%/
excludes_analyse:
- %currentWorkingDirectory%/woocommerce/checkout/
- %currentWorkingDirectory%/tests/
- %currentWorkingDirectory%/vendor/
autoload_files:
# Stubs
- %currentWorkingDirectory%/tests/bootstrap.php
- %currentWorkingDirectory%/tests/functions-stubs.php
# Files loaded from functions.php
- %currentWorkingDirectory%/inc/back-compat.php
- %currentWorkingDirectory%/inc/color-patterns.php
- %currentWorkingDirectory%/inc/color-patterns.php
- %currentWorkingDirectory%/classes/class-newspack-svg-icons.php
- %currentWorkingDirectory%/classes/class-newspack-walker-comment.php
- %currentWorkingDirectory%/inc/template-functions.php
- %currentWorkingDirectory%/inc/color-filters.php
- %currentWorkingDirectory%/inc/typography.php
- %currentWorkingDirectory%/inc/icon-functions.php
- %currentWorkingDirectory%/inc/template-tags.php
- %currentWorkingDirectory%/inc/customizer.php
- %currentWorkingDirectory%/inc/jetpack.php
- %currentWorkingDirectory%/inc/woocommerce.php
# Nothing to load
ignoreErrors:
# Uses func_get_args()
- '#^Function apply_filters invoked with [34567] parameters, 2 required\.$#'
- '#^Function add_theme_support invoked with [2345] parameters, 1 required\.$#'
# WP nav menu
-
path: %currentWorkingDirectory%/inc/icon-functions.php
message: '#^Cannot access property \$theme_location on array\.$#'
-
path: %currentWorkingDirectory%/inc/icon-functions.php
message: '#^Access to an undefined property WP_Post::\$url\.$#'
-
path: %currentWorkingDirectory%/inc/icon-functions.php
message: '#^Cannot access property \$link_after on array\.$#'