-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon
More file actions
38 lines (35 loc) · 1.35 KB
/
phpstan.neon
File metadata and controls
38 lines (35 loc) · 1.35 KB
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
includes:
- ./vendor/larastan/larastan/extension.neon
parameters:
paths:
- src
level: 5
ignoreErrors:
- '#Call to an undefined method [a-zA-Z0-9\\_]+::handle\(\)#'
# WordPress functions
- '#Function wp_[a-z_]+ not found#'
- '#Function get_[a-z_]+ not found#'
- '#Function add_[a-z_]+ not found#'
- '#Function do_[a-z_]+ not found#'
- '#Function apply_filters not found#'
- '#Function register_[a-z_]+ not found#'
# ACF functions
- '#Function acf_[a-z_]+ not found#'
# WooCommerce
- '#Function wc_[a-z_]+ not found#'
- '#Class WooCommerce not found#'
# WordPress classes
- '#Class WP_Query not found#'
- '#Class WP_User_Query not found#'
- '#Class WP_Block_Type_Registry not found#'
# WordPress globals
- '#Variable \$wpdb might not be defined#'
- '#Variable \$wp_version might not be defined#'
- '#Variable \$wp_filter might not be defined#'
- '#Variable \$wp_registered_widgets might not be defined#'
- '#Variable \$wp_registered_sidebars might not be defined#'
- '#Variable \$shortcode_tags might not be defined#'
# Constants
- '#Constant ACF_VERSION not found#'
- '#Constant WC_VERSION not found#'
- '#Constant WP_DEBUG not found#'